pcapng: Fix a buffer length.

In pcapng_read_systemd_journal_export_block, increase our buffer length
before appending to it.

Change-Id: I7e0f695c9bf1a6f80bc7e65661bfd5c70cda7d31
Reviewed-on: https://code.wireshark.org/review/29964
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2018-10-01 10:44:16 -07:00
parent c25ae4a182
commit fac429cf99
1 changed files with 1 additions and 0 deletions

View File

@ -2272,6 +2272,7 @@ pcapng_read_systemd_journal_export_block(wtap *wth, FILE_T fh, pcapng_block_head
entry_length, err, err_info)) {
return FALSE;
}
ws_buffer_increase_length(wblock->frame_buffer, entry_length);
/* We don't have memmem available everywhere, so we get to use strstr. */
ws_buffer_append(wblock->frame_buffer, (guint8 * ) "", 1);