diff options
author | Andreas Dilger <adilger@dilger.ca> | 2020-01-14 14:42:17 -0700 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-01-24 23:06:58 -0500 |
commit | 6b430d60caf6c4080bd32783659a819425657b69 (patch) | |
tree | a967fd33e368bf2a36bdadfca333c1276939862d /tests | |
parent | f6c5ad97daf7b266d66987476da33d6dfe341b36 (diff) | |
download | e2fsprogs-6b430d60caf6c4080bd32783659a819425657b69.tar.gz |
mmp: don't assume NUL termination for MMP strings
Don't assume that mmp_nodename and mmp_bdevname are NUL terminated,
since very long node/device names may completely fill the buffers.
Limit string printing to the maximum buffer size for safety, and
change the field definitions to __u8 to make it more clear that
they are not NUL-terminated strings, as is done with other strings
in the superblock that do not have NUL termination.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/filter.sed | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/filter.sed b/tests/filter.sed index f37986ce..796186e7 100644 --- a/tests/filter.sed +++ b/tests/filter.sed @@ -37,3 +37,4 @@ s/mmp_node_name: .*/mmp_node_name: test_node/ s/mmp_update_date: .*/mmp_update_date: test date/ s/mmp_update_time: .*/mmp_update_time: test_time/ s/MMP last updated by '.*' on .*/MMP last updated by 'test_node' on test date/ +s/MMP update by '.*' at .*/MMP last updated by 'test_node' on test date/ |