Commit Graph

79306 Commits

Author SHA1 Message Date
Moshe Kaplan cea77caf41 cli-main.c: free() argv's memory
free() memory allocated for argv to fix
Coverity 1108127, which detected it as
a resource leak.
2020-12-12 17:29:57 +00:00
Peter Eszlari 001d0debdc rpm: rename metadata 2020-12-12 17:08:31 +00:00
Pascal Quantin f194adb200 NAS 5GS: fix a typo in request type filter name 2020-12-12 16:17:51 +00:00
Jaap Keuter beb1877841 Qt: Add missing break in Win32 file export init dialog function 2020-12-12 14:36:18 +00:00
Pascal Quantin 746051d099 Qt: fix crash when opening/saving IP map on Windows
According to https://bugreports.qt.io/browse/QTBUG-20372 you need to close
a QFile before calling fclose, otherwise it leads to an unexpected behavior.
Let's duplicate the file handle to avoid this issue as suggested in
https://stackoverflow.com/questions/9465727/convert-qfile-to-file

Closes #17074
2020-12-12 12:00:35 +00:00
Martin Mathieson e2e43c0a8a eCPRI: cache oran dissector handle
This change was lost in the shuffle when original ORAN
change was closed and another opened...
2020-12-12 10:38:09 +00:00
Martin Mathieson b908dd3d78 NAS 5GS: Fix a conflicting value_string
WARNING **: Field 'Request type' (nas_5gs.mm.req_typ) has a conflicting entry
in its value_string: 5 is at indices 4 (Modification request) and 5
(MA PDU request)
2020-12-12 09:43:13 +00:00
Martin Mathieson 9623aaebdd UDPCP: cache xml dissector handle 2020-12-12 09:43:13 +00:00
Gerald Combs 404802dc34 Tools: skip commit validation for merge trains.
Skip commit validation if it looks like we're in a GitLab merge train.
2020-12-12 10:20:40 +01:00
Pascal Quantin 9fb03566c2 Qt: create endpoint IP map in temp folder
Closes #17074
2020-12-12 00:14:20 +00:00
Gerald Combs 6e1142c33a Win32: Add an include guard.
Add "#ifdef _WIN32" to file_dlg_win32.c so that it's ignored by
tools/validate-clang-check.sh.
2020-12-11 13:38:14 -08:00
Martin Mathieson 69117ba88f AUTHORS.src: Add Jan Schiefer for O-RAN dissector 2020-12-11 19:47:50 +00:00
Martin Mathieson 5a36793c84 O-RAN fronthaul UC-plane dissector
Also modified eCPRI dissector to call it for payloads.  This dissector will
claim the "IQ Data" and "Real-Time Control Data" message types - others
are still handled by eCPRI.
2020-12-11 13:58:43 +00:00
Rubin Gerritsen 7304487462 btle: LL_REJECT_IND_EXT -> LL_REJECT_EXT_IND
Use the name defined by the Bluetooth Specification.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2020-12-11 08:05:03 +00:00
Jaap Keuter 976738cd6c USB-HID: Tertiery is usually three 2020-12-10 21:39:07 +00:00
Gerald Combs 081f78e8dd GitLab CI: Update merge-req:windows.
Use a regex to match the project URL and add 'when: always'.
2020-12-10 20:14:34 +00:00
Peter Eszlari 42a09ad02e Linux: rename metadata according to spec
https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Application.html

https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s02.html#desktop-file-id
2020-12-10 18:11:12 +00:00
Anders Broman 9a46fabf52 Introduce ENC_BCD_ODD_NUM_DIG in order to handle odd number of digits 2020-12-10 16:02:10 +01:00
Andrii Vladyka 37f11e9a36 DOCSIS: Add FDX support to Downstream Active Channel List MDD TLV 2020-12-10 07:50:25 +00:00
John Thacker 2a98c11896 Reassembly: Flag duplicate packets as overlaps in offset based reassembly
fragment_add_work() should flag duplicate packets and overlapping packets
that are subsets of the existing reassembly as overlaps (and flag them if
there are conflicts), instead of silently adding them to the reassembly.
Currently the checks are only performed when the new segment is adding
additional bytes to the reassembly.

This is particularly useful for identifying when an earlier reassembly isn't
fully contained in the capture, and the identification / offset number has
wrapped around so that segments during two different reassemblies are being
mixed together.  Closes #16872 and #15569.
2020-12-10 07:18:59 +00:00
Moshe Kaplan 08a87f3e4c dot11decrypt_util: Avoid abusing memory layout
Instead of using a single memcpy which relies
upon struct members being in contiguous
memory, use three separate calls to memcpy.

This fixes Coverity 1460754.
2020-12-09 22:54:42 -05:00
Pascal Quantin 86e23155fe Windows: upgrade libssh to 0.9.5
Closes #17065
2020-12-09 22:35:25 +00:00
Pascal Quantin 10377c4d92 sshdump: fix detection of custom version in Windows 2020-12-09 22:02:42 +00:00
Gerald Combs 1bab2f7ee0 GitLab CI: Stop installing external dependencies.
Remove the last package installation instances from .gitlab-ci.yml. Add
a comment at the top noting that dependencies should be added to our
Dockerfiles instead.
2020-12-09 13:16:04 -08:00
Gerald Combs ef10cc74d1 CI: Fix Ubuntu tests.
The wireshark/wireshark-ubuntu-dev image was recently upgraded to Ubuntu
20.04. Since then the following tests have been failing:

---- FAILED
test/suite_capture.py::case_wireshark_capture::test_wireshark_capture_from_fifo
FAILED
test/suite_capture.py::case_wireshark_capture::test_wireshark_capture_from_stdin
FAILED
test/suite_capture.py::case_tshark_capture::test_tshark_capture_from_fifo
FAILED
test/suite_capture.py::case_tshark_capture::test_tshark_capture_from_stdin
FAILED
test/suite_capture.py::case_dumpcap_capture::test_dumpcap_capture_from_fifo
FAILED
test/suite_capture.py::case_dumpcap_capture::test_dumpcap_capture_from_stdin
FAILED
test/suite_capture.py::case_dumpcap_autostop::test_dumpcap_autostop_filesize
FAILED
test/suite_capture.py::case_dumpcap_autostop::test_dumpcap_autostop_packets
FAILED
test/suite_capture.py::case_dumpcap_ringbuffer::test_dumpcap_ringbuffer_filesize
FAILED
test/suite_capture.py::case_dumpcap_ringbuffer::test_dumpcap_ringbuffer_packets
FAILED
test/suite_capture.py::case_dumpcap_pcapng_sections::test_dumpcap_pcapng_multi_in_multi_out
FAILED
test/suite_capture.py::case_dumpcap_pcapng_sections::test_dumpcap_pcapng_multi_in_single_out
FAILED
test/suite_capture.py::case_dumpcap_pcapng_sections::test_dumpcap_pcapng_single_in_multi_out
FAILED
test/suite_capture.py::case_dumpcap_pcapng_sections::test_dumpcap_pcapng_single_in_single_out
FAILED
test/suite_clopts.py::case_dumpcap_options::test_dumpcap_interface_chars
FAILED
test/suite_clopts.py::case_dumpcap_options::test_dumpcap_invalid_chars
FAILED
test/suite_clopts.py::case_dumpcap_options::test_dumpcap_valid_chars
----

This is because dumpcap can't load our local libraries after setting cap_net_raw+cap_net_admin:

----
-- Begin stderr for command ('/builds/wireshark/wireshark/build/run/dumpcap', '-D') --
/builds/wireshark/wireshark/build/run/dumpcap: error while loading shared libraries: libwsutil.so.0: cannot open shared object file: No such file or directory
-- End stderr for command ('/builds/wireshark/wireshark/build/run/dumpcap', '-D') --
----

Add $(pwd)/run to our rpath.
2020-12-09 12:10:52 -08:00
John Thacker 770746cca8 epan: Fix format_text treament of Greek, Arabic, etc.
format_text uses the wrong bitmask when checking for two byte UTF-8
characters, resulting in rejecting half the possible two bytes characters,
including all of Arabic and Greek, and substituting REPLACEMENT CHARACTER
for them. Fixes #17070, and add some comments about the current behavior
that doesn't match existing comments.
2020-12-09 12:51:19 +00:00
Jirka Novak a61b6d277b RTP: RTP stream dialog exports to CSV and YAML pure and formated items
Current CSV/YAML export from RTP stream exports just pure/unformated items. Therefore e.g. SSRC looks different way than shown in dialog. This patch adds additional columns with formated values.
In addition, export uses same method how to get values from a record as dialog uses.
2020-12-09 11:38:03 +00:00
Moshe Kaplan a1b870a2b7 packet-s7comm: Prevent use of invalid timestamp
Detect when the timestamp's month is invalid and
avoid accessing the mon_names array out of bounds.
This fixes Coverity 1450966.
2020-12-09 08:04:46 +00:00
Guy Harris bb494c11de Fix various spelling errors.
Found by lintian and by looking for the misspelled words that lintian
found.

(Does not fix spelling errors in .asn1 files.)
2020-12-09 05:52:50 +00:00
Yoshihiro Ueda 2ab153527d SOME/IP: Fixed incorrect resetting offset of static array.
Fixed resetting offset of array to enable only when created tvb subset. Fixes #17057
2020-12-09 05:10:17 +00:00
Nardi Ivan 0af60377b4 QUIC: fix handling of unencrypted padding data
We must be able to correctly detect valid coalesced packets and
recognize them from random padding.

Close #17011
Close #16914
2020-12-09 04:51:46 +00:00
Martin Mathieson 3458494240 Snort: Allow snort to ignore checksums 2020-12-09 04:33:26 +00:00
Anders Broman 16ea22eaa4 F-Container: Try to improve error handling. 2020-12-09 00:44:44 +00:00
Moshe Kaplan c4d19650d5 wiretap/erf: Use memmove instead of memcpy
It's possible for memcpy's source and destination
to be the same address, and so therefore
'overlap'. Use memmove instead, which
is safe for overlapping regions.
This fixes Coverity 1450802.
2020-12-09 00:24:58 +00:00
Gerald Combs 3bf856868d Tools: Run `brew doctor` after installing Homebrew packages.
`brew doctor` doesn't take very long to run and might reveal issues that
need to be fixed.
2020-12-08 23:47:05 +00:00
Stig Bjørlykke 9cafd342ac Lua: Add get_preference() and set_preference() utility functions.
Support uint, bool, enum, string, range, filename and directory preferences.
Added apply_preferences() to write to file and apply changes.
2020-12-08 22:56:50 +00:00
Gerald Combs c7e6b79825 Kafka: Decrease our maximum decompression buffer size.
https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/record/KafkaLZ4BlockOutputStream.java
maxes out at 2^22, so use that.
2020-12-08 21:28:56 +00:00
Gerald Combs 7a8a3a8702 GitLab CI: Update lintian excludes.
Add "copyright-excludes-files-in-native-package" to the lintian exclude
list. The wireshark/wireshark-ubuntu-dev image was updated to 20.04
recently, and its lintian added
https://lintian.org/tags/copyright-excludes-files-in-native-package.html.
2020-12-08 11:44:42 -08:00
Uli Heilmeier c876b34ed1 SMB/SMB2: FS Name is always Unicode
According to MS-CIFS sections 2.2.8.2.6 [1] FS Name (or Label) string
is in unicode.

[1]: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-cifs/1011206a-55c5-4dbf-aff0-119514136940

Fixes: wireshark/wireshark#17064
2020-12-07 23:45:17 +00:00
Martin Kaiser ba16825c6c Qt: column list model: remove unused ListElement component
Selecting Edit / Preferences on my asan+ubsan build brings up the
following warning from ubsan:

/media/sf_wireshark.git/ui/qt/models/column_list_model.cpp:273:9:
runtime error: load of value 25, which is not a valid value for type 'bool'

The problem is in ColumnListModel::populate(), where a ListElement is
populated from fmt_data. The ListElement's "changed" component is not
initialized, though.

It looks like "changed" is not used anywhere. This patch removes it from
the ListElement struct.
2020-12-07 22:16:40 +00:00
Pascal Quantin a16c1697dc Windows: update libs cleanup paths 2020-12-07 22:14:27 +01:00
Stig Bjørlykke cb3b469d7f Qt: Fix packet bytes hover rectangle position
For Qt 5.11 and newer use horizontalAdvance() instead of boundingRect().width()
to calculate the width of a QString to position the hover rectangle position,
and to select which byte(s) to highlight.

Closes #17033.
2020-12-07 09:59:07 +00:00
Orgad Shaneh d2abcb09c1 TPNCP: Minor cleanup
Change-Id: I23a370c7a62cdef4c28ba487f8f2c73bb5455857
2020-12-07 08:38:53 +00:00
Martin Mathieson 403fdbe1a0 Snort: Try to address confusion from issue 17062. 2020-12-07 06:21:35 +00:00
Moshe Kaplan 3a0e4220c3 packet-radius.c: Replace gcry_md_copy() with gcry_md_reset()
Instead of successively calling gcry_md_copy()
and gcry_md_close(), call gcry_md_reset(),
to avoid creating and releasing contexts.
Besides the minor performance improvement,
this should also fix Coverity 1450263
and 1450848, which detect
two resource leaks.
2020-12-07 00:05:10 -05:00
Jim Young 9fb22c1ec0 Four trivial comment typo fixes of ‘ad’ to ‘as’ 2020-12-06 19:07:08 +00:00
Gerald Combs f6c7cb1251 [Automatic update for 2020-12-06]
Update manuf, services enterprise numbers, translations, and other items.
2020-12-06 17:08:27 +00:00
George Powers e7ec6739b6 Fix reported_len in Lua framewark when creating tvb from range.
This bug affects Lua plugin dissectors for encapsulation protocols like
GRE.  Typically the dissector creates a range for the payload packet, then
calls the next dissector with a tvb derived from the range, using
TvbRange_tvb().  The original version calls
tvb_new_subset_length_caplen() using the remaining capture length for the
reported_len argument.  The fix passes -1 as the reported length, and
tvb_new_subset_length_caplen() calculates the new reported_len as required.

The bug only affects large packets captured with a snaplen and
truncated, then decoded with a Lua plugin for the encapsulation header.

Here's the typical bug symptom, gleaned from tshark decode of
an encapsulated IP payload:

        [Expert Info (Error/Protocol): IPv4 total length exceeds packet length (114 bytes)]
            [IPv4 total length exceeds packet length (114 bytes)]

Closes #15655.
2020-12-06 12:38:46 +00:00
Guy Harris a11e5261e1 editcap: add IDBs to second and subsequent output files.
Remember all the IDBs we've seen from the input file so far and, if
we're writing multiple files (splitting an input file into multiple
output files), add all those IDBs to each of the output files.

Fixes issue #17060.
2020-12-05 13:22:49 -08:00
Andrii Vladyka 18ae9bd4e2 DOCSIS: Add FDX Sub-band TLV support in MDD Downstream Active Channel List 2020-12-05 20:11:08 +00:00