commit | 9c23b8961205f30d29c4137f4833f78cc48ce3fb | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <djwong@us.ibm.com> | Sun Nov 20 15:47:02 2011 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Sun Nov 20 15:53:11 2011 -0500 |
tree | cba7a50ea3c2685e9cbc3389cb708c3dade56368 | |
parent | 08ae93a2eda03817deabf08d4da9015a283ed56b [diff] |
debugfs: fix sprintf stack overflow The htree dump code overflows a char buffer if the directory has a long filename because the buffer is not large enough to hold the characters that are not part of the filename. Make the buffer larger and use snprintf instead. Signed-off-by: Darrick J. Wong <djwong@us.ibm.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>