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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user