diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2016-05-15 21:29:44 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-05-16 11:32:42 +0000 |
commit | c04ee3e173a7ac87a43e0f5e107b5672104a97d5 (patch) | |
tree | 33e5b50729d42a48008596ec96a8065b48e24db1 /epan/ex-opt.c | |
parent | ad4d0b800ff19f9c46aabc7c02c6bc1619926cc5 (diff) | |
download | wireshark-c04ee3e173a7ac87a43e0f5e107b5672104a97d5.tar.gz |
ISUP: fix buffer overrun when a number contains too many digits (CID 1361601)
Check the current length before adding the digit and not after
While we are at it, also switch to strbuf wmem buffer instead
Bug: 12442
Change-Id: If3e80e8446f527fe8fb013fbd57828f5572ca5ee
Reviewed-on: https://code.wireshark.org/review/15441
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/ex-opt.c')
0 files changed, 0 insertions, 0 deletions