diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-12-23 19:01:11 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-12-30 18:10:09 -0800 |
commit | 2a84680376bafd74609c6ef3e38befcb8467d814 (patch) | |
tree | de8f653585ef351c35d7c434da6e8c5616112cc8 /configure.ac | |
parent | 4d024ac10f964f6bd372ae0dd14f02772a6e5f63 (diff) |
Limit additional sscanf strings to fit buffer sizes
None of these could currently result in buffer overflow, as the input
and output buffers were the same size, but adding limits helps ensure
we keep it that way, if we ever resize any of these in the future.
Fixes cppcheck warnings:
[lib/libXfont/src/bitmap/bdfread.c:547]: (warning)
scanf without field width limits can crash with huge input data.
[lib/libXfont/src/bitmap/bdfread.c:553]: (warning)
scanf without field width limits can crash with huge input data.
[lib/libXfont/src/bitmap/bdfread.c:636]: (warning)
scanf without field width limits can crash with huge input data.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Matthieu Herrb <matthieu@herrb.eu>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions