summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFrank Ch. Eigler <[email protected]>2024-04-12 17:39:21 -0400
committerFrank Ch. Eigler <[email protected]>2024-04-12 17:39:21 -0400
commitd9f38a7052c22c7762aa5b98b401e8a324336bce (patch)
tree8d702e0f17d8e97d2c431bfdf2e8612444187b7d /tests
parentd4b0848be5f575ff9464fee12ce7be416e4fb392 (diff)
PR31637: debuginfod-find -v SIGSEGV
Correct an off-by-one error in argv parsing. Reported-By: <[email protected]> Signed-Off-By: Frank Ch. Eigler <[email protected]>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run-debuginfod-section.sh3
1 files changed, 3 insertions, 0 deletions
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