Wireshark-commits: [Wireshark-commits] master ec6ace0: DCOM: always NUL-terminate dissect_dcom_BSTR
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 12 Oct 2018 05:09:06 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=ec6ace066ae4c889d4c18a0a38a8c6053483877b
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

ec6ace0 by Peter Wu (peter@xxxxxxxxxxxxx):

    DCOM: always NUL-terminate dissect_dcom_BSTR results
    
    All of the six users in plugins/epan/profinet/packet-dcom-cba.c expect
    the string to be NUL-terminated, so ensure this to avoid reading
    uninitialized memory for the Info column.
    
    Bug: 15130
    Change-Id: Ibc922068d14b87ce324af3cec22a5f8343088b40
    Reviewed-on: https://code.wireshark.org/review/30128
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  f4be16a   wmem_tree: fix crash with wmem_tree_destroy and NULL scope
     add  ec6ace0   DCOM: always NUL-terminate dissect_dcom_BSTR results


Summary of changes:
 epan/dissectors/packet-dcom.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)