Wireshark-commits: [Wireshark-commits] master-1.12 2dd323b: Fix various off-by-one in buffer sizes

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 20 Feb 2016 15:37:21 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=2dd323bd63b4fd41d75c5ca262166e8ebd8926e0
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master-1.12
Repository: wireshark

Commits:

2dd323b by Peter Wu (peter@xxxxxxxxxxxxx):

    Fix various off-by-one in buffer sizes
    
    Some only allow buffer overruns (read), others also buffer overflows
    (write).
    
    Found by looking for '\[ *N *\]' where N is 255, 0xff, 15 and 0xf (case
    insensitive).
    
    Change-Id: I250687e2fdeb8fbd5eaf0bbb8251c3dab9640760
    Reviewed-on: https://code.wireshark.org/review/14034
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    (cherry picked from commit 3b644a75c9530b8fc60e2fa964dfb2ae327e240d)
     [Trivial conflict resolution]
    Reviewed-on: https://code.wireshark.org/review/14039
    

Actions performed:

    from  c43f94f   ber: fix buffer overrun when handling empty sets
    adds  2dd323b   Fix various off-by-one in buffer sizes


Summary of changes:
 epan/dissectors/packet-q2931.c |    2 +-
 epan/dissectors/packet-q931.c  |    2 +-
 epan/dissectors/packet-q933.c  |    2 +-
 ui/cli/tap-gsm_astat.c         |   20 ++++++++++----------
 wiretap/catapult_dct2000.c     |    2 +-
 5 files changed, 14 insertions(+), 14 deletions(-)