]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tac: avoid out of bounds access
authorPádraig Brady <P@draigBrady.com>
Wed, 15 Jan 2025 17:42:55 +0000 (17:42 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Jan 2025 17:42:55 +0000 (17:42 +0000)
commitd60e550ed0ba67455a5952fe8adf27dacf47e680
tree5c67ca83a21be2259f48f13fe2cd4df357dc4d75
parentc56890470e377238e50a18b7904bd3770a39fc50
tac: avoid out of bounds access

This was flagged on CheriBSD on ARM Morello with the error:
"In-address space security exception (core dumped)"
triggered with: tac -s '' /dev/null

* src/tac.c (main): Ensure we don't read beyond the
end of the supplied optarg.
src/tac.c