]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
string-util: check for overflow in strrep() (#41661)
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Thu, 16 Apr 2026 20:36:22 +0000 (22:36 +0200)
committerGitHub <noreply@github.com>
Thu, 16 Apr 2026 20:36:22 +0000 (22:36 +0200)
This simply mirrors the same overflow check we already have in
strrepa(), in case someone passed us a sufficiently long string.

strrep() is currently used only in tests, so this is just hardening.

1  2 
src/test/test-string-util.c

Simple merge