(/usr/include/bits/unistd.h) |
| |
| 345 | | | __NTH (gethostname (char *__buf, size_t __buflen))
x /usr/include/sys/cdefs.h |
| |
48 | # define __NTH(fct) __attribute__ ((__nothrow__)) fct |
| |
|
| 346 | | | { |
| 347 | | | if (__bos (__buf) != (size_t) -1)
x /usr/include/sys/cdefs.h |
| |
132 | #define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) |
| |
|
| 348 | | | { |
| 349 | | | if (!__builtin_constant_p (__buflen)) |
| 350 | | | return __gethostname_chk (__buf, __buflen, __bos (__buf));
x /usr/include/sys/cdefs.h |
| |
132 | #define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) |
| |
|
| 351 | | | |
| 352 | | | if (__buflen > __bos (__buf))
x /usr/include/sys/cdefs.h |
| |
132 | #define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) |
| |
|
Unreachable Call
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 353 | | | return __gethostname_chk_warn (__buf, __buflen, __bos (__buf));
x /usr/include/sys/cdefs.h |
| |
132 | #define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) |
| |
|
| 354 | | | } |
| 355 | | | return __gethostname_alias (__buf, __buflen); |
| 356 | | | } |
| |