Wireshark-commits: [Wireshark-commits] master 6d82619: Don't snprintf() into a string with one of t
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 3 Aug 2016 03:30:10 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=6d8261994bb928b7e80e3a2478a3d939ea1ef373
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

6d82619 by Guy Harris (guy@xxxxxxxxxxxx):

    Don't snprintf() into a string with one of the arguments being the same string.
    
    That doesn't work - you could be writing into the string from which
    you're reading.
    
    Bug: 12700
    Change-Id: I70f3ce6048dea582ec5e08c24c99e9a553b352df
    Reviewed-on: https://code.wireshark.org/review/16850
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  64ec47e   Qt: remove dead code.
    adds  6d82619   Don't snprintf() into a string with one of the arguments being the same string.


Summary of changes:
 epan/dissectors/asn1/h225/h225.cnf |   44 +++++----
 epan/dissectors/packet-h225.c      |  184 +++++++++++++++++++-----------------
 2 files changed, 126 insertions(+), 102 deletions(-)