diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-02-19 06:07:24 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-02-19 06:07:24 +0300 |
commit | b8826e506ee58873725ec3a25a2a27fefd762574 (patch) | |
tree | 6770d4351491e416873708da8c3538b25387b309 /tools/testing/selftests/splice/default_file_splice_read.sh | |
parent | 7880b43bdfc9580700ee4568c75c383a5bcdd2ca (diff) | |
download | linux-b8826e506ee58873725ec3a25a2a27fefd762574.tar.xz |
selftest for default_file_splice_read() infoleak
bug fixed in commit b9dc6f65bc5e ("fix a fencepost error in pipe_advance()")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'tools/testing/selftests/splice/default_file_splice_read.sh')
-rwxr-xr-x | tools/testing/selftests/splice/default_file_splice_read.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/selftests/splice/default_file_splice_read.sh b/tools/testing/selftests/splice/default_file_splice_read.sh new file mode 100755 index 000000000000..1ea2adeabc94 --- /dev/null +++ b/tools/testing/selftests/splice/default_file_splice_read.sh @@ -0,0 +1,7 @@ +#!/bin/sh +n=`./default_file_splice_read </dev/null | wc -c` + +test "$n" = 0 && exit 0 + +echo "default_file_splice_read broken: leaked $n" +exit 1 |