1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

Fix name space violation in fortify wrappers (bug 32052)

Rename the identifier sz to __sz everywhere.

Fixes: a643f60c53 ("Make sure that the fortified function conditionals are constant")
This commit is contained in:
Andreas Schwab
2024-08-05 10:55:51 +02:00
parent 1b0a2062c8
commit 39ca997ab3
4 changed files with 63 additions and 63 deletions

View File

@@ -43,16 +43,16 @@ __NTH (realpath (const char *__restrict __name,
"bytes long buffer")
#endif
{
size_t sz = __glibc_objsize (__resolved);
size_t __sz = __glibc_objsize (__resolved);
if (sz == (size_t) -1)
if (__sz == (size_t) -1)
return __realpath_alias (__name, __resolved);
#if !__fortify_use_clang && defined _LIBC_LIMITS_H_ && defined PATH_MAX
if (__glibc_unsafe_len (PATH_MAX, sizeof (char), sz))
return __realpath_chk_warn (__name, __resolved, sz);
if (__glibc_unsafe_len (PATH_MAX, sizeof (char), __sz))
return __realpath_chk_warn (__name, __resolved, __sz);
#endif
return __realpath_chk (__name, __resolved, sz);
return __realpath_chk (__name, __resolved, __sz);
}