Wireshark-commits: [Wireshark-commits] master-3.0 bac1fa4: Wiretap: Fix temporary filename memory c
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=bac1fa433cfcc7eba2ee38c2748e5915ab83e418
Submitter: "Peter Wu <peter@xxxxxxxxxxxxx>"
Changed: branch: master-3.0
Repository: wireshark
Commits:
bac1fa4 by Tomasz Moń (desowin@xxxxxxxxx):
Wiretap: Fix temporary filename memory corruption
The pointer returned by create_tempfile() must not be freed. As the
wtap_dump_open_tempfile() callers are freeing the returned filename,
duplicate the string so it can be freed.
Bug: 15377
Change-Id: Ib0b23aaee748ef67600ef3f7d40610ebbbec721c
Reviewed-on: https://code.wireshark.org/review/34272
Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
(cherry picked from commit c4b68b4935081f291795d60a91518a98b6ba9d0d)
Reviewed-on: https://code.wireshark.org/review/34295
Actions performed:
from 08cf544 macos-setup: Update nghttp2 to 1.39.2.
add bac1fa4 Wiretap: Fix temporary filename memory corruption
Summary of changes:
file.c | 4 ++--
file.h | 2 +-
ui/qt/import_text_dialog.cpp | 1 +
ui/qt/main_window.cpp | 5 ++---
wiretap/file_access.c | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)