Wireshark-commits: [Wireshark-commits] master c521570: Infiniband: skip past the undissected vendor
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 05 May 2020 05:18:18 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=c5215707d47082c1de2459dc9d1e4be7ad2d974e
Submitter: "Guy Harris <gharris@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

c521570 by Guy Harris (guy@xxxxxxxxxxxx):

    Infiniband: skip past the undissected vendor header.
    
    In parse_VENDOR() get the length of the raw data (presumed to be
    vendor-specific data) by using proto_tree_add_item_ret_length(), and add
    that to the offset.
    
    Should addresses PVS-Studio complaint
    
    /opt/SourceCode/wireshark/epan/dissectors/packet-infiniband.c	2782	warn
    V1048 The '* offset' variable was assigned the same value.
    
    Change-Id: Icac567e3ef2ad0484aaa111e5bc8a5cd83d9d8a5
    Reviewed-on: https://code.wireshark.org/review/37143
    Petri-Dish: Guy Harris <gharris@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <gharris@xxxxxxxxx>
    

Actions performed:

    from  b99a0c9   pcapng (dissector): don't assume the endianness doesn't change.
     add  c521570   Infiniband: skip past the undissected vendor header.


Summary of changes:
 epan/dissectors/packet-infiniband.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)