aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2022-05-23dfilter: Fix protocol slices with negative indexesJoão Valverde7-25/+60
Field infos have a length property that was not stored with the field value so when using a negative index the end was computed from the captured length of the frame tvbuff, leading to incorrect results. The documentation in wireshark-filter(5) describes how this was supposed to work but as far as I can tell it never worked properly. We now store the length and use that (when it is different from -1) to locate the end of the protocol data in the tvbuff. An extra wrinkle is that sometimes the length is set after the field value is created. This is the most common case as the majority of protocols have a variable length and dissection generally proceeds with a TVB subset from the current layer (with offset zero) through all remaining layers to the end of the captured length. For that reason we must use an expedient to allow changing the protocol length of an existing protocol fvalue, whenever proto_item_set_len() is called. Fixes #17772.
2022-05-23CMake: Disable errors with -Walloc-size-larger-than=João Valverde1-0/+3
This seems to be buggy and have a complicated interaction with the GCC optimizer. Disable hard failures so we can focus on actual issues and deal with dormant false positives when it is convenient. Ping #18089
2022-05-23epan: Consolidate some duplicate conversation code.Gerald Combs1-50/+34
Rename conversation_lookup_hashtable to conversation_lookup_addr_port. Add a new conversation_lookup_hashtable that consolidates some duplicate code and takes a general set of arguments similar to the other conversation_*_hashtable routines.
2022-05-23Git+docs: Ignore and document CMakeListsCustom.txt.Gerald Combs2-0/+7
2022-05-23epan: Allow conversations based on arbitrary element lists.Gerald Combs7-51/+469
Add conversation_new_full and find_conversation_full, which take arbitrary element lists instead of fixed addresses and ports. Update the comments in conversation.h to be more Doxygen-conformant. Update README.dissector. Use the new functionality to add initial conversation support to the Falco Bridge dissector.
2022-05-23TECMP: Renaming to Device and Interface for TECMP 1.7Dr. Lars Völker1-239/+238
The new TECMP release renames as follows: - Capture Module -> Device - Channel -> Interface Header fields (incl. filters) and Config UATs are affected.
2022-05-23Apply 1 suggestion(s) to 1 file(s)John Thacker1-1/+4
2022-05-23CMake+Qt: Fix our Resource Compiler arguments.Gerald Combs1-2/+6
We pass "--format-version 1" to rcc. If it's compiled with Zstandard we need to pass "-compress-algo zlib" as well. Fixes #18100.
2022-05-23qt: Ignore gcc 12.1 optimization bug with QtJohn Thacker4-0/+40
The Qt implicit casts from QByteArray to QString all use size = -1, meaning to the end of the string. This causes gcc 12.1 with -O2 to produce a very dubious stringop-overread warning, by computing both sides of a branch even when it shouldn't: /usr/include/qt5/QtCore/qstring.h:706:69: error: ‘size_t strlen(const char*)’ reading 1 or more bytes from a region of size 0 [-Werror=stringop-overread] 706 | return fromUtf8_helper(str, (str && size == -1) ? int(strlen(str)) : size); | ~~~~~~^~~~~ There's also a similar error with QByteArray.constData(), even though isEmpty() should return True when the QByteArray is NULL. (Adding isNull() prevents the warning but is redundant.) Use DIAG_OFF and DIAG_ON to ignore the warning on GCC 12.1 and higher. Fix #18090.
2022-05-22Some check_typed_item_calls.py warning fixes.Martin Mathieson12-15/+14
2022-05-22[Automatic update for 2022-05-22]Gerald Combs19-69/+2014
Update manuf, services enterprise numbers, translations, and other items. services failed.
2022-05-22Tools: Remove 32-bit support from win-setup.ps1.Gerald Combs1-41/+2
2022-05-22TECMP: Update to TECMP 1.7 specificationDr. Lars Völker1-57/+235
This patch updates the TECMP dissector with 1.6 and 1.7 changes. Changes: - Multiple new flags for CAN, CAN-FD, FlexRay, LIN, Analog, etc. - Reordering of flags - Additional data units for Analog - New Header CRC and Frame CRC for FlexRay (1.6 change) - New CRCs for CAN and CAN-FD (1.6 change) - Deprecated the removed Analog Threshold Undershot/Exceeded flags, since they were removed This patch does not include the renaming to Device and Interface.
2022-05-22smc: fix clang analyzer warning (Dead.Store)Alexis La Goutte1-2/+2
packet-smc.c:722:4: warning: Value stored to 'offset' is never read [deadcode.DeadStores] packet-smc.c:887:4: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
2022-05-22couchbase: fix clang analyzer warning (Dead.Store)Alexis La Goutte1-1/+0
packet-couchbase.c:2685:17: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
2022-05-22catapult-dct200: fix clang analyer warning (Dead.Store)Alexis La Goutte1-3/+3
packet-catapult-dct2000.c:1099:13: warning: Value stored to 'tag' is never read [deadcode.DeadStores] packet-catapult-dct2000.c:1100:13: warning: Value stored to 'len' is never read [deadcode.DeadStores] packet-catapult-dct2000.c:3076:21: warning: Value stored to 'sub_dissector_result' is never read [deadcode.DeadStores]
2022-05-22dfvm(dfilter): fix clang analyzer warning (Dead.Store)Alexis La Goutte1-1/+0
2022-05-21check_typed_item_calls: skip mask checks if can't parseMartin Mathieson1-1/+9
2022-05-21Use proto_tree_add_item where possibleMatthias Dietrich1-7/+8
2022-05-21Add PA Profile 4.02 diagnostics codesMatthias Dietrich1-0/+362
2022-05-21Dissect PA Profile IO dataMatthias Dietrich3-6/+238
2022-05-21Resolve PA Profile 4.02 submodule namesMatthias Dietrich2-0/+354
2022-05-20CMake: Enable Qt6 if WIRESHARK_QT6_PREFIX_PATH is set.Gerald Combs1-1/+5
Remove the "developers only" admonition.
2022-05-20RLC-NR: When have NACK Range, clearly show which SNs were lostMartin Mathieson1-0/+1
2022-05-19BPv7 and TCPCL: Update references to published RFCsBrian Sipos6-13/+14
2022-05-19Falco Bridge: API updates.Gerald Combs3-11/+12
Update to the current (c02ae4b6) API.
2022-05-19Falco Bridge: Fix address field registration.Gerald Combs1-1/+2
2022-05-19Qt: Row colors and resizeRoland Knall3-0/+16
Set the row colors in the traffic dialogs to alternating for better readibility and add a context menu option to resize the columns back to content Fixes #16189
2022-05-19Qt: Simplify traffic type selectionRoland Knall1-24/+14
Remove unnecessary subclass and make the code easier to manage in the future
2022-05-19check_spelling: Recognise epan/pci-ids.c as generatedMartin Mathieson1-0/+4
2022-05-19Qt: Move type selection to tabRoland Knall1-1/+3
Move the type selection to the tab selection bar, so that new users may find it faster and easier
2022-05-18epan: Document the epan, file, and packet scopes.Gerald Combs1-6/+15
2022-05-18Qt: Allow translation for traffic tablesRoland Knall4-45/+79
Allow the headers of the conversations and endpoint statistic dialog to be used with the Qt translation system
2022-05-18Qt: Cleanup Traffic TableRoland Knall6-358/+218
Remote traffic_table_ui.? and move the JSON stuff into endpoint. This is in preparation for larger work on both the conversation table as well as the endpoint table, and to start using Qt code in the UI where it should be used.
2022-05-18Update bpv7 and bpsec dissectors to resolve ticket 17727lindnerp2-59/+113
2022-05-18SDP: Minor Refactoring by Extract Methodeasonweii1-399/+444
Extract Method for multiple message of SDP Media Attribute to simplify things and Make processes clearer. dissect_sdp_media_attribute_rtpmap dissect_sdp_media_attribute_fmtp dissect_sdp_media_attribute_path dissect_sdp_media_attribute_h248_item dissect_sdp_media_attribute_crypto The original function remain unchanged.
2022-05-18f5ethtrailer: Decode TLS 1.3 trailer info on some versionsJason Cohen1-3/+8
2022-05-17Docs: Document packaging/debian.Gerald Combs1-4/+4
The debian directory was moved to packaging/debian in 79da670bd1. Update the documentation to match. Ping #18097.
2022-05-17Qt: Fix packet diagram cleanupRoland Knall1-0/+3
After selecting field values to be shown or not shown residues of the former diagram may reside until the next scroll event. This updates the viewport to trigger the paintEvent earlier. Fixes #17997
2022-05-17ISUP: avoid parameter summary text duplicationNardi Ivan1-18/+17
Parameter name should be appended only once to the tree, when handling national extensions. Close #18094
2022-05-16wsdg/lua: gui.colorized_frame.fg example is a few digits shortChuck Craft1-1/+1
2022-05-16Qt: Fix some pathSelection warningsRoland Knall2-5/+5
2022-05-16Tools: Don't validate file_util.c.Gerald Combs1-0/+5
It's Windows-only.
2022-05-16GitLab CI: Switch the Windows packages to Qt 6.2.3.Gerald Combs2-1/+9
Qt 6.2.4 has a serious display enumeration bug on Windows (QTBUG-101203). Switch to 6.2.3. Fixes #18091.
2022-05-16Qt: Speedup for Resolved Addresses DlgRoland Knall4-18/+27
This is a small speedup for the ResolvedAddressesDialog. QString::arg is a copy-by-call method as QString::append just extends the space occupied by the string, leading to a major speed improvement. Same goes for configuring the proxymodels first and then assigning the data model as this will lead not to reorganization everytime invalideFilter is being called
2022-05-16extcap: Close pipe on windows properlyRoland Knall3-1/+25
Windows implements so called CRT handlers, which will catch any assertions happening inside so called crt routines and either displays a debug dialog (Cancel, Retry, Ignore) or outright crashes the application. See https://docs.microsoft.com/en-us/cpp/c-runtime-library/parameter-validation?view=msvc-170 for an explanation of the behaviour. Now, in the current situation here, close will detect (correctly) that the pipe it is supposed to be closing is already closed. This happens (again correctly) because it had been closed by the extcap application. The change added, checks for a closed pipe first, and if so just returns -1 (as it should) silently without calling the CRT routine, therefore not crashing
2022-05-16Qt: Fix File Path editor in tableRoland Knall10-180/+267
The current situation in UatDelegate as well as PathChooserDelegate leads to issues, where Wireshark crashes if the button is clicked. This is due to the UI not correctly positioning the button inside the cell. This change implements a widget, which will serve as cell content, handling all relations with choosing the file, but also properly handling the size and geometry of said cell content, therefore no longer leading to crashes and cleaning up code at the same time, as duplicate methods are being removed. Fixes #17789, #17819, #18088
2022-05-16Tools: Unzip using CMake in win-setup.ps1.Gerald Combs1-78/+8
Use `CMake -E tar xf` to unzip files in win-setup.ps1. This seems to be the most reliable and reasonably fast common denominator for unzipping files. Update our comments. Fixes #17756.
2022-05-15[Automatic update for 2022-05-15]Gerald Combs17-63/+256
Update manuf, services enterprise numbers, translations, and other items.
2022-05-15epan: Fix our conversation flagsGerald Combs8-13/+13
Make sure we pass NO_ADDR2 and NO_PORT2 to conversation_new and NO_ADDR_B and NO_PORT_B to find_conversation.