Whamcloud - gitweb
[COVERITY] Avoid static buffer overruns in debugfs
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 21 Mar 2007 19:09:15 +0000 (15:09 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 21 Mar 2007 19:09:15 +0000 (15:09 -0400)
commitb772900b4bcff407c883b7bd8419af56be0a9823
treee38e0cced77c88506ce9d96672227a58056d8223
parenta4b66fb1339c1f60c2d280dd949754d4206aca0a
[COVERITY] Avoid static buffer overruns in debugfs

Add an extra byte to EXT2_NAME_LEN in the static allocation for the
required trailing null.  This allows filenames up to the maximum
length of EXT2_NAME_LEN withover an overrun.

Coverity ID: 11: Overrun Static
Coverity ID: 12: Overrun Static
Coverity ID: 13: Overrun Static

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/ChangeLog
debugfs/dump.c
debugfs/htree.c
debugfs/ls.c