Wireshark-commits: [Wireshark-commits] master 3bf6a18: Fix -1 lengths in proto_tree_add_item_ret_st

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 21 Nov 2016 09:53:20 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=3bf6a189994475a5a1a82bb518e7fdd047cc7777
Submitter: Alexis La Goutte (alexis.lagoutte@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

3bf6a18 by Etienne Dechamps (etienne@xxxxxxxxxxxx):

    Fix -1 lengths in proto_tree_add_item_ret_string_and_length().
    
    Currently, when passing a -1 length to proto_tree_add_item_ret_string_and_length() or
    proto_tree_add_item_ret_string(), the -1 length will be passed directly
    to the field info. The calculated length should be used instead.
    
    Bug: 13159
    Change-Id: I980d18fb9bde3c452e64a8735e62d4830ce53b64
    Reviewed-on: https://code.wireshark.org/review/18904
    Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
    Petri-Dish: Michael Mann <mmann78@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
    

Actions performed:

    from  035e404   cmake: add creation of version.conf to be shipped in tarball.
    adds  3bf6a18   Fix -1 lengths in proto_tree_add_item_ret_string_and_length().


Summary of changes:
 epan/proto.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)