]> git.ipfire.org Git - thirdparty/glibc.git/commit
Replace __strcpy_chk with __builtin___strcpy_chk
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 17 Dec 2024 22:55:35 +0000 (06:55 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 18 Dec 2024 01:32:38 +0000 (09:32 +0800)
commitcd90d3ca7d5b515cb096d8c1d7c83b94ef6eba71
tree6fbaccf7c8d9aa4e09526e489cff1bd92015b170
parentae5062201d7e9d18fe88bff4bc71088374c394fb
Replace __strcpy_chk with __builtin___strcpy_chk

Although _chk functions are exported in libc.so.6, their prototypes aren't
provided.  Their built versions are supported by compiler.  Replace
__strcpy_chk with __builtin___strcpy_chk to silence Clang error:

./tst-gnuglob-skeleton.c:225:3: error: call to undeclared function '__strcpy_chk'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  225 |   __strcpy_chk (dir->d.d_name, filesystem[dir->idx].name, NAME_MAX);
      |   ^

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
posix/tst-glob_lstat_compat.c
posix/tst-gnuglob-skeleton.c