diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-05-11 13:56:39 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2021-05-11 13:56:39 +0000 |
commit | 053973023ba8786f490f77372a860edcb691277a (patch) | |
tree | a8c7f63e7b245fa5b072b82ef56d780e4793a3e2 | |
parent | d6134f6b911daa0ac0e8086a4ab2d146ec8b6e04 (diff) | |
download | s6-rc-053973023ba8786f490f77372a860edcb691277a.tar.xz |
bugfix: possible oob read in s6-rc-compile
-rw-r--r-- | src/s6-rc/s6-rc-compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s6-rc/s6-rc-compile.c b/src/s6-rc/s6-rc-compile.c index 66f886e..7aa37ea 100644 --- a/src/s6-rc/s6-rc-compile.c +++ b/src/s6-rc/s6-rc-compile.c @@ -220,7 +220,7 @@ static int add_name_nocheck (before_t *be, char const *srcdir, char const *name, static void check_identifier (char const *srcdir, char const *s) { - if (!memcmp(s, "s6rc-", 5) && !memcmp(s, "s6-rc-", 6)) + if (!strncmp(s, "s6rc-", 5) && !strncmp(s, "s6-rc-", 6)) strerr_dief5x(1, "in ", srcdir, ": identifier ", s, " starts with reserved prefix") ; } |