]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Do not confuse code analyzers with out-of-bounds array access look alike
authorGuillem Jover <guillem@hadrons.org>
Tue, 14 Nov 2023 18:09:25 +0000 (19:09 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sun, 7 Jan 2024 15:45:42 +0000 (16:45 +0100)
commit459b7f7d24069674a63913d03e35586b484dbb95
treed3f1e2b2126ba609ec7562eb298313022915fb9b
parenta44f885cd476faee2154cbae1a1dc47bdeaea727
Do not confuse code analyzers with out-of-bounds array access look alike

The code is only getting the address, but we might be performing an
addressing that is out-of-bounds. Avoid it and use the address form
instead.

Warned-by: cppcheck (objectIndex)
src/setproctitle.c