wireshark/ui
Guy Harris 3cb6403a4c wiretap: always allocate a block for a record.
Without that, you could add a comment to a record in a file format the
reading code for which doesn't allocate blocks, but the comment doesn't
get saved, as there's no block in which to save the comment option.

This simplifies some code paths, as we're either using the record's
modified block or we're using the block as read from the file, there's
no third possibility.

If we attempt to read a record, and we get an error, and a block was
allocated for the record, unreference it, so the individual file readers
don't have to worry about it.
2021-08-29 19:12:13 -07:00
..
cli wsutil: Revert some changes to format_size() 2021-07-11 14:39:13 +00:00
macosx Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
qt [Automatic update for 2021-08-29] 2021-08-29 11:54:22 +00:00
win32 Win32: Fix a string length check. 2021-07-08 04:12:45 +00:00
CMakeLists.txt CMake: Adjust wsutil includes and linking. 2021-07-14 03:56:05 +00:00
alert_box.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
alert_box.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
all_files_wildcard.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
capture.c [#17478] free blocks in more places 2021-08-10 00:08:15 +00:00
capture.h Clean up handling of --capture-comment. 2021-07-15 05:43:36 +00:00
capture_globals.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
capture_info.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
capture_ui_utils.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
capture_ui_utils.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
clopts_common.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
clopts_common.h Reorganize long option values 2019-12-15 20:02:09 +00:00
cmdarg_err.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
cmdarg_err.h Add more error-reporting routines that call through a function pointer. 2021-03-15 12:17:59 -07:00
commandline.c Clean up handling of --capture-comment. 2021-07-15 05:43:36 +00:00
commandline.h Clean up handling of --capture-comment. 2021-07-15 05:43:36 +00:00
console.c wslog: Prefer more modern time APIs 2021-06-29 14:19:55 +00:00
console.h wslog: Prefer more modern time APIs 2021-06-29 14:19:55 +00:00
decode_as_utils.c Move version_info.[ch] to ui/ 2021-07-04 10:37:49 +00:00
decode_as_utils.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
dissect_opts.c Replace g_assert() with ws_assert() 2021-06-19 01:23:31 +00:00
dissect_opts.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
exit_codes.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
export_pdu_ui_utils.c Move version_info.[ch] to ui/ 2021-07-04 10:37:49 +00:00
export_pdu_ui_utils.h Clean up "Export PDUs to File" code. 2021-03-14 06:51:36 -07:00
failure_message.c Add more error-reporting routines that call through a function pointer. 2021-03-15 12:17:59 -07:00
failure_message.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
file_dialog.c [#17478] free blocks in more places 2021-08-10 00:08:15 +00:00
file_dialog.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
filter_files.c Replace g_assert() with ws_assert() 2021-06-19 01:23:31 +00:00
filter_files.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
firewall_rules.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
firewall_rules.h
help_url.c Replace g_assert() with ws_assert() 2021-06-19 01:23:31 +00:00
help_url.h Windows: Switch from HTML Help to plain HTML. 2021-06-04 08:57:32 +00:00
iface_lists.c Refactor our logging and extend the wslog API 2021-06-11 09:40:28 +00:00
iface_lists.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
iface_toolbar.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
iface_toolbar.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
io_graph_item.c Replace g_assert() with ws_assert() 2021-06-19 01:23:31 +00:00
io_graph_item.h Replace g_assert() with ws_assert() 2021-06-19 01:23:31 +00:00
language.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
language.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
last_open_dir.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
main_statusbar.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
mcast_stream.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
mcast_stream.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
packet_list_utils.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
packet_list_utils.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
packet_range.c Replace g_assert() with ws_assert() 2021-06-19 01:23:31 +00:00
packet_range.h Move still *more* headers outside of extern "C". 2021-03-16 13:50:13 -07:00
persfilepath_opt.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
persfilepath_opt.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
preference_utils.c Add missing header 2021-06-17 15:30:52 +00:00
preference_utils.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
profile.c Replace g_assert() with ws_assert() 2021-06-19 01:23:31 +00:00
profile.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
progress_dlg.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
proto_hier_stats.c Replace g_assert() with ws_assert() 2021-06-19 01:23:31 +00:00
proto_hier_stats.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
recent.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
recent.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
recent_utils.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
rtp_media.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
rtp_media.h RTP Player: Memory consumption improvements 2021-04-25 19:34:52 +02:00
rtp_stream.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
rtp_stream.h Replace g_log() calls with ws_log() 2021-06-16 12:50:27 +00:00
rtp_stream_id.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
rtp_stream_id.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
service_response_time.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
service_response_time.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
simple_dialog.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
software_update.c ui: add support for updating on macOS using arm 2021-05-29 17:21:03 +00:00
software_update.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
ssl_key_export.c ui: Return length from ssl_export_sessions() 2021-06-07 08:59:02 +02:00
ssl_key_export.h ui: Return length from ssl_export_sessions() 2021-06-07 08:59:02 +02:00
summary.c wiretap: clean up option definitions a bit. 2021-07-14 06:55:12 +00:00
summary.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
tap-credentials.h credentials: don't use wmem file scope but a local copy. 2019-07-05 12:26:44 +00:00
tap-iax2-analysis.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
tap-iax2-analysis.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
tap-rlc-graph.c Detect and replace bad allocation patterns 2020-12-22 14:56:38 +00:00
tap-rlc-graph.h Move still *more* headers outside of extern "C". 2021-03-16 13:50:13 -07:00
tap-rtp-analysis.c Add min/mean delta and min jitter, to the RTP analysis. 2021-05-02 19:58:59 +00:00
tap-rtp-analysis.h Add min/mean delta and min jitter, to the RTP analysis. 2021-05-02 19:58:59 +00:00
tap-rtp-common.c rtpdump: Fix usec value in header 2021-07-28 06:51:36 +00:00
tap-rtp-common.h Add min/mean delta and min jitter, to the RTP analysis. 2021-05-02 19:58:59 +00:00
tap-sctp-analysis.c Cast away the return value of g_strlcpy() and g_strlcat(). 2021-04-30 03:19:19 -07:00
tap-sctp-analysis.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
tap-tcp-stream.c Refactor our logging and extend the wslog API 2021-06-11 09:40:28 +00:00
tap-tcp-stream.h Don't cast away upper bits when assigning to a nstime_t's secs field. 2021-04-28 21:31:15 +00:00
tap_export_pdu.c wiretap: always allocate a block for a record. 2021-08-29 19:12:13 -07:00
tap_export_pdu.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
taps.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
text_import.c text_import.c: get EXP_PDU_TAG_PROTO_NAME from the header. 2021-08-20 14:58:44 -07:00
text_import.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
text_import_regex.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
text_import_regex.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
text_import_scanner.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
text_import_scanner.l Put back EOF rule, but without exporting write_current_packet(). 2019-03-20 16:06:57 +00:00
time_shift.c CMake: Don't bother checking for fcntl.h or floorl. 2021-07-15 06:41:05 +00:00
time_shift.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
traffic_table_ui.c Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
traffic_table_ui.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
urls.h Revert "Apparently, WS_WIKI_URL() is unworkable not only in C++ but in C." 2020-10-25 14:42:47 -07:00
util.c Cast away the return value of g_strlcpy() and g_strlcat(). 2021-04-30 03:19:19 -07:00
util.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00
version_info.c Rename version.h to be more descriptive 2021-07-09 18:27:41 +00:00
version_info.h Move version_info.[ch] to ui/ 2021-07-04 10:37:49 +00:00
voip_calls.c First pass pinfo->pool conversion 2021-07-21 05:38:29 +00:00
voip_calls.h Replace g_log() calls with ws_log() 2021-06-16 12:50:27 +00:00
ws_ui_util.h Remove unneeded modelines in ui. 2021-04-20 07:43:39 +00:00