On Fri, Jan 21, 2011 at 10:50:30PM +0100, Stefan Weil wrote:
> 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 term
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
---
check-qdict.c |3