aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-05-24Add ws_debug() and use itJoão Valverde45-418/+403
Replace most instances of ws_debug_printf() except in epan/dissectors and dissector plugins. Some replacements use printf(), some use ws_debug(), and some were removed because they were dead or judged to be temporary.
2021-05-24pcapng: Fix debug statementsJoão Valverde1-2/+2
2021-05-23netscaler: plug a memory leak.Guy Harris1-0/+1
Free the read buffer if the first read fails.
2021-05-23tacacs: free a buffer if it's not used.Guy Harris1-1/+3
Plugs a leak.
2021-05-23dnp: plug a memory leak.Guy Harris1-0/+1
If we're throwing away the data, *throw away the data* - free it, as we're not using it as the backing data for a tvbuff.
2021-05-23PROFInet: Correct handling for multiple APIsMartin Tschoepe1-3/+1
When dissecting messages with multiple API types within the same message, the parsing of the connect request fails to take all elements into account. This results in only partial parsing of the elements. This fix ensures that all parts of the message are taken into account and dissected correctly.
2021-05-23change info labels to match Zigbee spec for clarityChris Brandson1-1/+1
2021-05-23nvme: Fix Dead StoreAlexis La Goutte1-2/+2
Value stored to 'bytes' is never read
2021-05-23addr_resolv: repopulate services table on profile switchChuck Craft1-0/+2
2021-05-23DVB-S2-BB: Make dissect_dvb_s2_gse() have the dissector_t signatureJohn Thacker1-24/+24
Change dissect_dvb_s2_bb to take a tvb_subset of the appropriate size and offset instead of being passed in an offset and length. Rearrange the parameters so that it has the dissector_t signature. This is a little cleaner, and also allows in the future creating dissector handles that call the GSE dissector directly for GSE frames not carried within a BBFrame.
2021-05-23[Automatic update for 2021-05-23]Gerald Combs6-98/+212
Update manuf, services enterprise numbers, translations, and other items.
2021-05-23NVMe: fix parsing ANA Get LogPage response.Constantine Gavrilov1-13/+18
2021-05-23OID handling: fix a memory leak.Guy Harris1-4/+21
There's a "break" in some code that appears to be copied and pasted from a switch statement; the break would exit the loop (and leak memory allocated within the loop), which does not appear to be the intent, so it may have been copied over incorrectly. Remove it. While we're at it, redo the "constant-time append to the end of a loop" code to be a bit clearer, both to humans reading the code and code analyzers reading the code.
2021-05-23epl-profile-parser: plug a memory leak.Guy Harris1-0/+1
g_key_file_get_groups() returns a pointer to g_mallocated data; we need to pass its return value to g_strfreev() when we're done with that data, to free it up.
2021-05-22RTP streams: plug memory leaks.Guy Harris1-10/+31
Don't allocate the rtpstream_id_t's until we know we have enough information to fill them in and use them. Keep trace of whether we have used them and, if not, free them.
2021-05-22Plug another leak.Guy Harris1-0/+1
If cf_export_specified_packets() succeeds, and it wrote to a temporary file, it leaks the name of the file to which it was writing. Free that after we've renamed that file on top of the target file (safe save).
2021-05-22Remove a duplicate unlink.Guy Harris1-4/+5
In cf_export_specified_packets(), if the loop processing the packets fails, we're going to go to the failure code, which will unlink the file to which we were writing if we were writing to a temporary file, so we don't need to unlink it before going there. While we're at it, note why we don't report any error from wtap_dump_close() in that case.
2021-05-22Plug a memory leak.Guy Harris1-1/+3
If the user aborted the process of exporting packets, if we're writing to a temporary file, we unlink the file, but we don't free the g_mallocated name of the file, so it's leaked. Free it.
2021-05-22oran: clean up write_pdu_label_and_info().Guy Harris1-2/+5
Declare it as being printflike, so that the compiler does format-vs-argument-list checking. Fix the error that found. Make the string buffer into which it formats automatic, so that it's thread-safe.
2021-05-22dof: clean up adding the session key to the dissection.Guy Harris1-3/+2
Let the libwireshark code format the value of the session key, by setting its display format to SEP_COLON. Use proto_tree_add_bytes_with_length(), so that the session key becomes the value of the field; otherwise, the length of the key isn't specified. This means we don't need to call bytestring_to_str() (the code in epan/proto.c calls it for us). This also plugs a leak of the string generated by bytestring_to_str().
2021-05-22VoIP Dialogs: Refactoring of singleton windows to factory methodsJirka Novak12-179/+312
Singletons moved from main_window to each class's static open<NameOfClass> method: - RtpPlayerDialog - RtpStreamDialog - VoipCallsDialog - RtpAnalysisDialog Fixed issue with selecting RTP stream in sequence dialog. When user selected a stream and moved mouse to Rtp Player button and pressed it, incorrect RTP stream was sent to it.
2021-05-21fuzzshark: close a leak.Guy Harris1-1/+3
If init_progfile_dir() fails, it returns a g_mallocated string with an error message. After printing the error message, free the string.
2021-05-21protobuf: close another leak.Guy Harris1-0/+2
Close the directory handle we've opened before returning a failure indication if pbw_load_proto_file() or load_all_files_in_dir() reports a failure.
2021-05-21protobuf: close a leak when file loading fails.Guy Harris1-1/+3
Free the path we've constructed before returning a failure indication if pbw_load_proto_file() or load_all_files_in_dir() reports a failure. Also, explicitly compare pbw_load_proto_file()'s return value against 0, to make it a little clearer that it's *not* a Boolean, it's a return code (with 0 meaning success and different non-zero values meaning failure; if it matters *which* failure it is, we should probably have otherwise we should just make it a Boolean).
2021-05-21epan: redo the processing of ENC_APN_STR.Guy Harris1-17/+71
Process the characters entirely ourselves; that way, we don't have to worry about tvb_get_string_enc(..., ENC_ASCII) mangling label length values, can convert non-ASCII characters in labels to the Unicode REPLACEMENT CHARACTER, and can do bounds checks.
2021-05-21NAS 5GS: fix Non-3GPP NW policies IE dissectionPascal Quantin1-1/+1
2021-05-21Added documentation for new statistics.Thomas Dreibholz4-0/+15
2021-05-21Added statistics for ComponentStatusProtocol.Thomas Dreibholz1-4/+264
2021-05-21Added statistics for FractalGeneratorProtocol.Thomas Dreibholz1-29/+288
2021-05-21Added statistics for CalcAppProtocol.Thomas Dreibholz1-6/+265
2021-05-21ERLDP: Fix the type of the handshake tag.Martin Mathieson1-1/+1
Error: proto_tree_add_item_ret_uint(.., hf_erldp_tag, ...) called at epan/dissectors/packet-erldp.c:625 with type FT_STRING (allowed types are {'FT_UINT8', 'FT_CHAR', 'FT_UINT24', 'FT_UINT32', 'FT_UINT16'} )
2021-05-21ErlDP: decode handshake flagsAndreas Schultz1-4/+177
2021-05-21NSIS: install all files in the protobuff directory.Anders Broman1-1/+1
2021-05-20DVB-S2-BB: Make dissect_dvb_s2_bb() have the dissector_t signatureJohn Thacker1-26/+26
Change dissect_dvb_s2_bb to take a tvb_subset instead of being passed in an offset. Rearrange the parameters so that it has the dissector_t signature. This is a little cleaner, and also allows in the future creating dissector handles that point directly to baseband frames (if we know we have L.1/ out of band mode adaptation.)
2021-05-20Reduced size of the ASAP and ENRP Statistics screenshots.Thomas Dreibholz2-0/+0
PNGs were compressed by using "pngquant --speed 1 ...".
2021-05-20Updated documentation of the RSerPool statistics.Thomas Dreibholz3-2/+3
2021-05-20Added bytes and byte rate to ASAP and ENRP statistics.Thomas Dreibholz2-61/+185
2021-05-20Adding more than one protobuff file fails.Anders Broman1-1/+1
2021-05-20NGAP: fix dissection of UERadioCapability IE for NB-IoT UEsPascal Quantin3-155/+173
2021-05-20Use ENC_APN_STR in one more place.Anders Broman2-17/+7
2021-05-20DCT2000: allow for longer lines/PDUsMartin Mathieson1-1/+1
2021-05-20btmesh: Add dissectors of some generic opcodesPiotr Winiarczyk1-3/+1766
Add dissectors of some opcodes from Mesh Models document. Closes #17402
2021-05-20Add ENC_APN_STR to handle APN stringsAndersBroman5-58/+28
2021-05-20ieee80211: reorder some ett rnr fieldAlexis La Goutte1-8/+6
2021-05-20ieee80211: Enhance display when there is multiple TBTT InformationAlexis La Goutte1-5/+15
2021-05-20ieee80211: Fix Multiple Neigbor AP Information on RNRAlexis La Goutte1-40/+50
2021-05-20wsutil: Add ws_assert_bounds()João Valverde2-1/+6
2021-05-20wsutil: Avoid using g_abort()João Valverde1-2/+3
g_abort() requires GLib 2.50, our minimum required version is 2.38.
2021-05-20Fixup ws_assert() macroJoão Valverde1-1/+1
Use a void expression instead of removing the expression entirely. Under certain conditions, for example as the only statement in an if() conditional, removing the assertion will generate compiler warnings.
2021-05-20Fix a maybe-uninitialized warning with -O3 (gcc)João Valverde1-1/+1
GCC 11.1.0. ./epan/dissectors/packet-dcerpc-netlogon.c: In function ‘dissect_secchan_verf’: ../epan/dissectors/packet-dcerpc-netlogon.c:8162:13: error: ‘digest’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 8162 | guint64 digest; | ^~~~~~