(/usr/include/bits/unistd.h) |
| |
| 35 | | | read (int __fd, void *__buf, size_t __nbytes) |
| 36 | | | { |
| 37 | | | if (__bos0 (__buf) != (size_t) -1)
x /usr/include/sys/cdefs.h |
| |
133 | #define __bos0(ptr) __builtin_object_size (ptr, 0) |
| |
|
| 38 | | | { |
| 39 | | | if (!__builtin_constant_p (__nbytes)) |
| 40 | | | return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf));
x /usr/include/sys/cdefs.h |
| |
133 | #define __bos0(ptr) __builtin_object_size (ptr, 0) |
| |
|
| 41 | | | |
| 42 | | | if (__nbytes > __bos0 (__buf))
x /usr/include/sys/cdefs.h |
| |
133 | #define __bos0(ptr) __builtin_object_size (ptr, 0) |
| |
|
Unreachable Call
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 43 | | | return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf));
x /usr/include/sys/cdefs.h |
| |
133 | #define __bos0(ptr) __builtin_object_size (ptr, 0) |
| |
|
| 44 | | | } |
| 45 | | | return __read_alias (__fd, __buf, __nbytes); |
| 46 | | | } |
| |