commit | 966ef874a8920c238d24b45bd1e8697b8dfcd4da | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Tue May 02 11:12:54 2017 -0500 |
committer | Eric Sandeen <sandeen@redhat.com> | Tue May 02 11:12:54 2017 -0500 |
tree | feef9b06ff3b73ba71d0538b2924df73c061e0b6 | |
parent | 23069a9353eb8af30f3427feed6c92380d025a53 [diff] |
xfs_db: don't print arrays off the end of a buffer Before printing an array, clamp the array count against the size of the buffer so that we don't print random heap contents. [sandeen: re-use fsz variable in call to prfunc] Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>