From d9f38a7052c22c7762aa5b98b401e8a324336bce Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Fri, 12 Apr 2024 17:39:21 -0400 Subject: PR31637: debuginfod-find -v SIGSEGV Correct an off-by-one error in argv parsing. Reported-By: Signed-Off-By: Frank Ch. Eigler --- tests/run-debuginfod-section.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/run-debuginfod-section.sh b/tests/run-debuginfod-section.sh index 66e53e83..6ac59688 100755 --- a/tests/run-debuginfod-section.sh +++ b/tests/run-debuginfod-section.sh @@ -81,6 +81,9 @@ wait_ready $PORT1 'thread_busy{role="scan"}' 0 # Build-id for a file in the one of the testsuite's F31 rpms RPM_BUILDID=d44d42cbd7d915bc938c81333a21e355a6022fb7 +# PR31637 argc range checking +(testrun ${abs_top_builddir}/debuginfod/debuginfod-find -v 2>&1 || true) | grep Usage: + # Download sections from files indexed with -F testrun ${abs_top_builddir}/debuginfod/debuginfod-find -vvv section $BUILDID .debug_info testrun ${abs_top_builddir}/debuginfod/debuginfod-find -vvv section $BUILDID .text -- cgit v1.2.3