]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: add very long mount line to libmount mtab
authorKees Cook <keescook@chromium.org>
Wed, 26 Aug 2015 21:39:21 +0000 (14:39 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 27 Aug 2015 17:05:19 +0000 (10:05 -0700)
commit930f9ea0d8fda7f55206e9007aafa6b8e490652f
treeb5a20e5166af336b7cf417c093e907947265463d
parenteac8f358b7e58aab81e0ac9a9bdb0bfdafba1f77
tests: add very long mount line to libmount mtab

Very long mount lines from the kernel (either from escaping or from giant
option lists) could exceed BUFSIZ, leading to parsing failures. This
adds a test for the condition.

Signed-off-by: Kees Cook <keescook@chromium.org>
tests/expected/libmount/tabfiles-parse-mtab
tests/expected/libmount/tabfiles-py-parse-mtab
tests/ts/libmount/files/mtab