Wireshark-commits: [Wireshark-commits] master cabd7d8: wsutil: fix a NULL pointer dereference when
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 28 Mar 2017 05:05:43 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=cabd7d82935561dde001ba7132ae145ea2c6dbeb
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

cabd7d8 by Pascal Quantin (pascal.quantin@xxxxxxxxx):

    wsutil: fix a NULL pointer dereference when there is a single plugin registered
    
    Rework loop to avoid dereferencing a NULL pointer. Bug introduced in g6d79055
    
    Change-Id: I88a9f2d045b633cc2365ff6ce939f3315e7d42cc
    Reviewed-on: https://code.wireshark.org/review/20751
    Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
    Petri-Dish: Michael Mann <mmann78@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  2141eaf   GTK: the maximum packet size is WTAP_MAX_PACKET_SIZE, not 65535
    adds  cabd7d8   wsutil: fix a NULL pointer dereference when there is a single plugin registered


Summary of changes:
 wsutil/plugins.c |   22 ++++++----------------
 1 file changed, 6 insertions(+), 16 deletions(-)