Wireshark-commits: [Wireshark-commits] master-2.6 d40c64e: Fix the temporary file string buffer exp

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 30 Oct 2019 22:21:25 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=d40c64e1a1d62d86a1f367a931ffa2dbc5db259f
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master-2.6
Repository: wireshark

Commits:

d40c64e by Guy Harris (guy@xxxxxxxxxxxx):

    Fix the temporary file string buffer expansion.
    
    The buffer needs to be big enough to include the trailing '\0', so we
    need to compare the buffer's length against strlen(name) + 1, not
    against strlen(name).
    
    Bug: 15751
    Change-Id: I75ae65f8c818284834d761d9dd911d029cfca3b1
    Reviewed-on: https://code.wireshark.org/review/34892
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit 5459104358d385fa2c1b34dd228e5c47bf3bce2f)
    Reviewed-on: https://code.wireshark.org/review/34894
    

Actions performed:

    from  c6ac9c1   HomePlug AV: Fix dissection of MMTYPE and FMI
     add  d40c64e   Fix the temporary file string buffer expansion.


Summary of changes:
 wsutil/tempfile.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)