Wireshark-commits: [Wireshark-commits] master 4b6224a: proto: don't overrun buffer.
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=4b6224a67326dc72e428e8f6606b8ae10059c0bd
Submitter: Dario Lombardo (lomato@xxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
4b6224a 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>
Actions performed:
from a5e3414 extcap: Fix required indicator
adds 4b6224a proto: don't overrun buffer.
Summary of changes:
epan/proto.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)