Wireshark-commits: [Wireshark-commits] master-2.0 a6a30ec: BGP: Fix length in decode_prefix4()
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 18 Nov 2016 02:29:31 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=a6a30ec1cd26ccbb3a520b8231602c236609ab66
Submitter: Michael Mann (mmann78@xxxxxxxxxxxx)
Changed: branch: master-2.0
Repository: wireshark

Commits:

a6a30ec by Uli Heilmeier (uh@xxxxxxxxxxxx):

    BGP: Fix length in decode_prefix4()
    
    When decode_prefix4() gets called with more prefixes the length of
    proto_tree_add_subtree_format() should not be the total length.
    
    As the "Withdrawn route" part was the only one where decode_prefix4() has
    been called with a tlen not equal 0 we can eliminate the tlen parameter.
    
    Bug: 13146
    Change-Id: I708dec2cecbed6054b60190104b82c72d54e8037
    Reviewed-on: https://code.wireshark.org/review/18852
    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>
    Reviewed-on: https://code.wireshark.org/review/18858
    

Actions performed:

    from  2893703   Double the fuzz testing memory limit.
    adds  a6a30ec   BGP: Fix length in decode_prefix4()


Summary of changes:
 epan/dissectors/packet-bgp.c |   17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)