]> git.ipfire.org Git - thirdparty/coreutils.git/commit
yes: avoid failure on CHERI protected systems
authorPádraig Brady <P@draigBrady.com>
Wed, 15 Jan 2025 22:08:07 +0000 (22:08 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Jan 2025 22:16:30 +0000 (22:16 +0000)
commit261f13bcf84a6f7a3241bab48c074879db789fca
tree8712c087ce210664328364072956317cc16f9a43
parentd60e550ed0ba67455a5952fe8adf27dacf47e680
yes: avoid failure on CHERI protected systems

* src/yes.c (main): Don't reuse the argv array as CHERI's
capability bounds do not allow for that, failing like:
  $ yes $(seq 156) | head -n1
  In-address space security exception (core dumped)
src/yes.c