]> granicus.if.org Git - sysstat/commit
Fix possible buffer overflow
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 12 Apr 2014 14:46:39 +0000 (16:46 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 12 Apr 2014 14:46:39 +0000 (16:46 +0200)
commitf1646341a9bb46dde4bda689f4be01546d5c7969
treef77ec75ba44fba4c5a448b99140bd24646ae2037
parent92a1966fbffed04fcdf3fad24edc6e57edec22dc
Fix possible buffer overflow

From dcb314:

[rd_stats.c:835]: (warning) scanf without field width limits can crash
with huge input data.

So changed "n = fscanf(fp, "%s", duplex);" with
"n = fscanf(fp, "%31s", duplex);".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
rd_stats.c