Wireshark-commits: [Wireshark-commits] master-2.0 96d1013: TDS: Replace use of val_to_str() with VA
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 24 Oct 2015 13:22:00 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=96d10134f3ec329839a0242c11119a099f2b6e80
Submitter: Pascal Quantin (pascal.quantin@xxxxxxxxx)
Changed: branch: master-2.0
Repository: wireshark

Commits:

96d1013 by Nathan Cole (nath@xxxxxxxxxxxxxxxxxxxxxx):

    TDS: Replace use of val_to_str() with VALS()
    
    Multiple uses of val_to_str replaced, allowing proto_tree_add_item and
    proto_item_append_text to be replaced with just proto_tree_add_item.
    
    While changing this aspect in dissect_tds7_prelogin_packet, I strengthened
    the add_item calls so that integer fields could not be passed with invalid
    lengths.
    
    Bug: 11631
    Change-Id: I556c4d965fd4ee5dffa36b538695d46e422062de
    Reviewed-on: https://code.wireshark.org/review/11239
    Reviewed-by: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    Petri-Dish: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
    (cherry picked from commit 02d56ffa9c540dde3c3a9d1a77bd90f5a3b98962)
    Reviewed-on: https://code.wireshark.org/review/11245
    

Actions performed:

    from  eb6ccb1   T38: fix a dereference of NULL pointer
    adds  96d1013   TDS: Replace use of val_to_str() with VALS()


Summary of changes:
 epan/dissectors/packet-tds.c |   33 +++++++++++++--------------------
 1 file changed, 13 insertions(+), 20 deletions(-)