Wireshark-commits: [Wireshark-commits] master d50b27f: gsm-rlcmac: use wmem_new0 for a struct
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 26 Jan 2015 15:34:54 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=d50b27f4ce310377c7a04d15aebac7d445c075f0
Submitter: Evan Huus (eapache@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

d50b27f by Evan Huus (eapache@xxxxxxxxx):

    gsm-rlcmac: use wmem_new0 for a struct
    
    Fixes "Conditional jump or move depends on uninitialised value" from Valgrind.
    
    I couldn't really figure out how this code was supposed to function, it seems to
    initialize one member of the union and then expect *all* the others to just
    magically work (which they apparently do in most cases, oddly). The real bug
    could be in csnStreamDissector or who knows, but this at least turns "garbage
    data" into "zeros" which makes valgrind happy and turns a potential vuln into
    at worst a bad decoding.
    
    Bug: 10891
    Change-Id: Ia29dd625b46b3b76ff521b4203148fe8b0c59ec3
    Reviewed-on: https://code.wireshark.org/review/6769
    Petri-Dish: Evan Huus <eapache@xxxxxxxxx>
    Reviewed-by: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Evan Huus <eapache@xxxxxxxxx>
    

Actions performed:

    from  abf5703   Register EtherNet/IP dissector for "external" use (like SSL)
    adds  d50b27f   gsm-rlcmac: use wmem_new0 for a struct


Summary of changes:
 epan/dissectors/packet-gsm_rlcmac.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)