commit | 7464f0587b2938a3e10e9f995f384df8a5f298ac | [log] [tgz] |
---|---|---|
author | Stefan Weil <weil@mail.berlios.de> | Fri Jan 21 22:50:30 2011 +0100 |
committer | Aurelien Jarno <aurelien@aurel32.net> | Sun Feb 20 18:45:09 2011 +0100 |
tree | 8485d320bf2091c7e14d61b44fd6f9d5efcbfaad | |
parent | 8da91fffeaffba5f014dfdcc88b672590e83b7fc [diff] |
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>