From 378c18e5f024ac5a8aef4cb40d7c9aa9633d144c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:30:35 +0200 Subject: Adding upstream version 2.38.1. Signed-off-by: Daniel Baumann --- tests/ts/fuzzers/test_fdisk_script_fuzz | 29 +++++++++++++++++++++ .../crash-8ae1c667bed4b4b864f62e78cded81d5083177eb | 1 + .../crash-d216dfd17039a189c3858d78fbcf588695439b3b | 1 + .../test_fdisk_script_fuzz_files/github-1015-1 | Bin 0 -> 12 bytes .../test_fdisk_script_fuzz_files/github-1015-2 | 2 ++ .../test_fdisk_script_fuzz_files/oss-fuzz-24589 | 2 ++ .../test_fdisk_script_fuzz_files/oss-fuzz-24861 | 1 + ...parse_line_valcommas-use-of-uninitialized-value | 1 + tests/ts/fuzzers/test_last_fuzz | 29 +++++++++++++++++++++ tests/ts/fuzzers/test_last_fuzz_files/github-1097 | Bin 0 -> 384 bytes tests/ts/fuzzers/test_mount_fuzz | 29 +++++++++++++++++++++ .../fuzzers/test_mount_fuzz_files/oss-fuzz-23722 | Bin 0 -> 4 bytes 12 files changed, 95 insertions(+) create mode 100755 tests/ts/fuzzers/test_fdisk_script_fuzz create mode 100644 tests/ts/fuzzers/test_fdisk_script_fuzz_files/crash-8ae1c667bed4b4b864f62e78cded81d5083177eb create mode 100644 tests/ts/fuzzers/test_fdisk_script_fuzz_files/crash-d216dfd17039a189c3858d78fbcf588695439b3b create mode 100644 tests/ts/fuzzers/test_fdisk_script_fuzz_files/github-1015-1 create mode 100644 tests/ts/fuzzers/test_fdisk_script_fuzz_files/github-1015-2 create mode 100644 tests/ts/fuzzers/test_fdisk_script_fuzz_files/oss-fuzz-24589 create mode 100644 tests/ts/fuzzers/test_fdisk_script_fuzz_files/oss-fuzz-24861 create mode 100644 tests/ts/fuzzers/test_fdisk_script_fuzz_files/parse_line_valcommas-use-of-uninitialized-value create mode 100755 tests/ts/fuzzers/test_last_fuzz create mode 100644 tests/ts/fuzzers/test_last_fuzz_files/github-1097 create mode 100755 tests/ts/fuzzers/test_mount_fuzz create mode 100644 tests/ts/fuzzers/test_mount_fuzz_files/oss-fuzz-23722 (limited to 'tests/ts/fuzzers') diff --git a/tests/ts/fuzzers/test_fdisk_script_fuzz b/tests/ts/fuzzers/test_fdisk_script_fuzz new file mode 100755 index 0000000..708d372 --- /dev/null +++ b/tests/ts/fuzzers/test_fdisk_script_fuzz @@ -0,0 +1,29 @@ +#!/bin/bash + +# This file is part of util-linux. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +TS_TOPDIR="${0%/*}/../.." +TS_DESC="test_fdisk_script_fuzz" + +. $TS_TOPDIR/functions.sh +ts_init "$*" + +ts_check_test_command "$TS_HELPER_LIBFDISK_SCRIPT_FUZZ" + +ASAN_RT_PATH="$(ts_get_asan_rt_path "$TS_HELPER_LIBFDISK_SCRIPT_FUZZ")" +[ -n "$ASAN_RT_PATH" ] && export LD_PRELOAD="$ASAN_RT_PATH:$LD_PRELOAD" + +mkdir -p ${TS_OUTPUT}_workdir +ts_run $TS_HELPER_LIBFDISK_SCRIPT_FUZZ ${TS_OUTPUT}_workdir ${TS_SCRIPT}_files -max_total_time=10 >$TS_OUTPUT 2>$TS_ERRLOG + +ts_finalize diff --git a/tests/ts/fuzzers/test_fdisk_script_fuzz_files/crash-8ae1c667bed4b4b864f62e78cded81d5083177eb b/tests/ts/fuzzers/test_fdisk_script_fuzz_files/crash-8ae1c667bed4b4b864f62e78cded81d5083177eb new file mode 100644 index 0000000..66aafba --- /dev/null +++ b/tests/ts/fuzzers/test_fdisk_script_fuzz_files/crash-8ae1c667bed4b4b864f62e78cded81d5083177eb @@ -0,0 +1 @@ +Id=tĪ] \ No newline at end of file diff --git a/tests/ts/fuzzers/test_fdisk_script_fuzz_files/crash-d216dfd17039a189c3858d78fbcf588695439b3b b/tests/ts/fuzzers/test_fdisk_script_fuzz_files/crash-d216dfd17039a189c3858d78fbcf588695439b3b new file mode 100644 index 0000000..5805924 --- /dev/null +++ b/tests/ts/fuzzers/test_fdisk_script_fuzz_files/crash-d216dfd17039a189c3858d78fbcf588695439b3b @@ -0,0 +1 @@ +0z \ No newline at end of file diff --git a/tests/ts/fuzzers/test_fdisk_script_fuzz_files/github-1015-1 b/tests/ts/fuzzers/test_fdisk_script_fuzz_files/github-1015-1 new file mode 100644 index 0000000..1827bdf Binary files /dev/null and b/tests/ts/fuzzers/test_fdisk_script_fuzz_files/github-1015-1 differ diff --git a/tests/ts/fuzzers/test_fdisk_script_fuzz_files/github-1015-2 b/tests/ts/fuzzers/test_fdisk_script_fuzz_files/github-1015-2 new file mode 100644 index 0000000..961ac8a --- /dev/null +++ b/tests/ts/fuzzers/test_fdisk_script_fuzz_files/github-1015-2 @@ -0,0 +1,2 @@ +:=0M +, diff --git a/tests/ts/fuzzers/test_fdisk_script_fuzz_files/oss-fuzz-24589 b/tests/ts/fuzzers/test_fdisk_script_fuzz_files/oss-fuzz-24589 new file mode 100644 index 0000000..96d8c6c --- /dev/null +++ b/tests/ts/fuzzers/test_fdisk_script_fuzz_files/oss-fuzz-24589 @@ -0,0 +1,2 @@ +device:’ +- \ No newline at end of file diff --git a/tests/ts/fuzzers/test_fdisk_script_fuzz_files/oss-fuzz-24861 b/tests/ts/fuzzers/test_fdisk_script_fuzz_files/oss-fuzz-24861 new file mode 100644 index 0000000..be8baa6 --- /dev/null +++ b/tests/ts/fuzzers/test_fdisk_script_fuzz_files/oss-fuzz-24861 @@ -0,0 +1 @@ +name=;name=’ \ No newline at end of file diff --git a/tests/ts/fuzzers/test_fdisk_script_fuzz_files/parse_line_valcommas-use-of-uninitialized-value b/tests/ts/fuzzers/test_fdisk_script_fuzz_files/parse_line_valcommas-use-of-uninitialized-value new file mode 100644 index 0000000..cf4c8e4 --- /dev/null +++ b/tests/ts/fuzzers/test_fdisk_script_fuzz_files/parse_line_valcommas-use-of-uninitialized-value @@ -0,0 +1 @@ +,- \ No newline at end of file diff --git a/tests/ts/fuzzers/test_last_fuzz b/tests/ts/fuzzers/test_last_fuzz new file mode 100755 index 0000000..5d92d0d --- /dev/null +++ b/tests/ts/fuzzers/test_last_fuzz @@ -0,0 +1,29 @@ +#!/bin/bash + +# This file is part of util-linux. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +TS_TOPDIR="${0%/*}/../.." +TS_DESC="test_last_fuzz" + +. $TS_TOPDIR/functions.sh +ts_init "$*" + +ts_check_test_command "$TS_HELPER_LAST_FUZZ" + +ASAN_RT_PATH="$(ts_get_asan_rt_path "$TS_HELPER_LAST_FUZZ")" +[ -n "$ASAN_RT_PATH" ] && export LD_PRELOAD="$ASAN_RT_PATH:$LD_PRELOAD" + +mkdir -p ${TS_OUTPUT}_workdir +ts_run $TS_HELPER_LAST_FUZZ ${TS_OUTPUT}_workdir ${TS_SCRIPT}_files -max_total_time=10 >$TS_OUTPUT 2>$TS_ERRLOG + +ts_finalize diff --git a/tests/ts/fuzzers/test_last_fuzz_files/github-1097 b/tests/ts/fuzzers/test_last_fuzz_files/github-1097 new file mode 100644 index 0000000..fbd7dbf Binary files /dev/null and b/tests/ts/fuzzers/test_last_fuzz_files/github-1097 differ diff --git a/tests/ts/fuzzers/test_mount_fuzz b/tests/ts/fuzzers/test_mount_fuzz new file mode 100755 index 0000000..c934907 --- /dev/null +++ b/tests/ts/fuzzers/test_mount_fuzz @@ -0,0 +1,29 @@ +#!/bin/bash + +# This file is part of util-linux. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +TS_TOPDIR="${0%/*}/../.." +TS_DESC="test_mount_fuzz" + +. $TS_TOPDIR/functions.sh +ts_init "$*" + +ts_check_test_command "$TS_HELPER_LIBMOUNT_FUZZ" + +ASAN_RT_PATH="$(ts_get_asan_rt_path "$TS_HELPER_LIBMOUNT_FUZZ")" +[ -n "$ASAN_RT_PATH" ] && export LD_PRELOAD="$ASAN_RT_PATH:$LD_PRELOAD" + +mkdir -p ${TS_OUTPUT}_workdir +ts_run $TS_HELPER_LIBMOUNT_FUZZ ${TS_OUTPUT}_workdir ${TS_SCRIPT}_files -max_total_time=10 >$TS_OUTPUT 2>$TS_ERRLOG + +ts_finalize diff --git a/tests/ts/fuzzers/test_mount_fuzz_files/oss-fuzz-23722 b/tests/ts/fuzzers/test_mount_fuzz_files/oss-fuzz-23722 new file mode 100644 index 0000000..f66c9cf Binary files /dev/null and b/tests/ts/fuzzers/test_mount_fuzz_files/oss-fuzz-23722 differ -- cgit v1.2.3