diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-01-21 22:50:30 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-02-20 18:45:09 +0100 |
commit | 7464f0587b2938a3e10e9f995f384df8a5f298ac (patch) | |
tree | 8485d320bf2091c7e14d61b44fd6f9d5efcbfaad /net.c | |
parent | 8da91fffeaffba5f014dfdcc88b672590e83b7fc (diff) | |
download | qemu-7464f0587b2938a3e10e9f995f384df8a5f298ac.zip qemu-7464f0587b2938a3e10e9f995f384df8a5f298ac.tar.gz qemu-7464f0587b2938a3e10e9f995f384df8a5f298ac.tar.bz2 |
check-qdict: Fix possible crash
This warning is reported by cppcheck:
check-qdict.c:270: warning: scanf without field width limits can crash with huge input data
Fix it by limiting the field widths to 127 (both key and value take
127 characters + a terminating '\0' byte).
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'net.c')
0 files changed, 0 insertions, 0 deletions