Wireshark-commits: [Wireshark-commits] master f4be16a: wmem_tree: fix crash with wmem_tree_destroy
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 12 Oct 2018 05:08:23 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=f4be16aa45e76d862ff858e8c36e28a206be3143
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

f4be16a by Peter Wu (peter@xxxxxxxxxxxxx):

    wmem_tree: fix crash with wmem_tree_destroy and NULL scope
    
    The function was documented for use with a NULL scope, but it actually
    crashes since callbacks are not available for NULL scopes. git master
    is unaffected, but the GTK+ protocol dialog in 2.4 and 2.6 do crash.
    
    Bug: 14349
    Change-Id: I54350e112192394797cf85eaac4f30194178d7c4
    Fixes: v2.3.0rc0-2597-gb7d6cca4ae ("Add wmem_tree_destroy")
    Reviewed-on: https://code.wireshark.org/review/30126
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  f57cf9e   DCERPC: fix memleak by removing dummy element from ndr_pointer_list
     add  f4be16a   wmem_tree: fix crash with wmem_tree_destroy and NULL scope


Summary of changes:
 epan/wmem/wmem_tree.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)