Wireshark-commits: [Wireshark-commits] master a0600e0: tshark: fix use-after-free while closing a l
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 08 Apr 2020 21:58:31 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=a0600e02a9a5fa02531ca3c2d5a2d82b325aab1c
Submitter: "Peter Wu <peter@xxxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

a0600e0 by Peter Wu (peter@xxxxxxxxxxxxx):

    tshark: fix use-after-free while closing a live capture file
    
    wtap_cleanup() clears options which are still in use by the time
    cf_close calls wtap_close. Be sure to close the capture file first.
    
    Bug: 16487
    Change-Id: Id9ef1c0321865e9574b69439870a842efb2b209b
    Fixes: v3.3.0rc0-853-g3662a69036 ("Maintain cf->state, because file cleanup depends on it.")
    Reviewed-on: https://code.wireshark.org/review/36755
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Reviewed-by: Guy Harris <gharris@xxxxxxxxx>
    

Actions performed:

    from  f71a5e0   github: add cmake options workflow.
     add  a0600e0   tshark: fix use-after-free while closing a live capture file


Summary of changes:
 tshark.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)