Wireshark-commits: [Wireshark-commits] master-2.2 e563bd1: Make sure we zero out the newly allocate

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 22 Feb 2017 03:42:45 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=e563bd1acdbeb2ad1a9455b9ec807ec1c47fd8fd
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.2
Repository: wireshark

Commits:

e563bd1 by Joerg Mayer (jmayer@xxxxxxxxx):

    Make sure we zero out the newly allocated list, otherwise g_list append may
    dereference ->next containing an arbitrary value.
    
    Bug: 13418
    Change-Id: I240bc03e652ede557083379cc81b81ae83d720e5
    Reviewed-on: https://code.wireshark.org/review/20235
    Reviewed-by: Jörg Mayer <jmayer@xxxxxxxxx>
    (cherry picked from commit 50dff6eac41bbe22e1436af1301628eb3462bf8a)
    Reviewed-on: https://code.wireshark.org/review/20241
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  2170755   Don't use identical log messages for non-identical error cases.
    adds  e563bd1   Make sure we zero out the newly allocated list, otherwise g_list append may dereference ->next containing an arbitrary value.


Summary of changes:
 caputils/capture-pcap-util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)