Wireshark-commits: [Wireshark-commits] master-2.2 8c7ab5f: proto.c: do not perform bound checks in

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 28 Jul 2016 19:50:51 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=8c7ab5f2b2c18f23c1baa856e30ff8dcb0b7151c
Submitter: Pascal Quantin (pascal.quantin@xxxxxxxxx)
Changed: branch: master-2.2
Repository: wireshark

Commits:

8c7ab5f by Pascal Quantin (pascal.quantin@xxxxxxxxx):

    proto.c: do not perform bound checks in proto_tree_add_text(_valist)_internal if tvb is NULL
    
    As seen in bug 12676, some buggy dissectors do not systematically provide a tvb when calling proto_tree_add_XXX functions.
    On stable branch, let's deactivate the bound checks in that case.
    
    Bug: 12676
    Change-Id: Ia3cf0b0972c127f34feca2e097e0ec1fd1753b23
    Reviewed-on: https://code.wireshark.org/review/16752
    Petri-Dish: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    

Actions performed:

    from  917b2fe   Fix build on NetBSD.
    adds  8c7ab5f   proto.c: do not perform bound checks in proto_tree_add_text(_valist)_internal if tvb is NULL


Summary of changes:
 epan/proto.c |   28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)