Wireshark-commits: [Wireshark-commits] master-2.6 a08b870: proto: don't overrun buffer.
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 09 May 2018 14:07:33 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=a08b870db848d39f5f91a29a3f80b84fea7892c0
Submitter: Dario Lombardo (lomato@xxxxxxxxx)
Changed: branch: master-2.6
Repository: wireshark

Commits:

a08b870 by Dario Lombardo (lomato@xxxxxxxxx):

    proto: don't overrun buffer.
    
    This is shown by a bunch of coverity reports all pointing at this line.
    Every buffer has a ITEM_LABEL_LENGTH, but label_mark_truncated access it
    at ITEM_LABEL_LENGTH (off-by-one).
    
    CIDs:
    1435461
    1435462
    1435465
    1435466
    1435471
    1435472
    1435477
    1435481
    1435483
    1435484
    1435485
    1435489
    1435492
    1435500
    
    Fixes: v1.11.3-rc1-1837-gf94674d2fb ("truncate UTF-8 strings only at the boundary between two characters")
    Change-Id: I3781c36594f7db880bc9f76b64d261dbc498c0ce
    Reviewed-on: https://code.wireshark.org/review/27425
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Dario Lombardo <lomato@xxxxxxxxx>
    (cherry picked from commit 4b6224a67326dc72e428e8f6606b8ae10059c0bd)
    Reviewed-on: https://code.wireshark.org/review/27428
    Petri-Dish: Dario Lombardo <lomato@xxxxxxxxx>
    

Actions performed:

    from  a239077   dtls: Remove period from Version blurb
    adds  a08b870   proto: don't overrun buffer.


Summary of changes:
 epan/proto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)