URL: 
https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=35418a73f7c9cefebe392b1ea0f012fccaf89801
Submitter: "Guy Harris <ghar...@sonic.net>"
Changed: branch: master
Repository: wireshark

Commits:

35418a7 by Guy Harris (ghar...@sonic.net):

    Add format_text_string(), which gets the length with strlen().
    
    format_text(alloc, string, strlen(string)) is a common idiom; provide
    format_text_string(), which does the strlen(string) for you.  (Any
    string used in a %s to set the text of a protocol tree item, if it was
    directly extracted from the packet, should be run through a format_text
    routine, to ensure that it's valid UTF-8 and that control characters are
    handled correctly.)
    
    Update comments while we're at it.
    
    Change-Id: Ia8549efa1c96510ffce97178ed4ff7be4b02eb6e
    Reviewed-on: https://code.wireshark.org/review/38202
    Petri-Dish: Guy Harris <ghar...@sonic.net>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <ghar...@sonic.net>
    

Actions performed:

    from  06ff18f   EPL: adaptations of SDO dissector
     add  35418a7   Add format_text_string(), which gets the length with 
strlen().


Summary of changes:
 debian/libwireshark0.symbols |  1 +
 epan/strutil.c               | 33 ++++++++++++++++++++++++----
 epan/strutil.h               | 51 ++++++++++++++++++++++++++++++++++++++++----
 3 files changed, 77 insertions(+), 8 deletions(-)
___________________________________________________________________________
Sent via:    Wireshark-commits mailing list <wireshark-commits@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-commits
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-commits
             mailto:wireshark-commits-requ...@wireshark.org?subject=unsubscribe

Reply via email to