Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Differential
D3459
Diff 8407
lib/libc/secure/__memmove_chk.c
Changeset View
These functions all look wrong. In the header wrappers, we're not trusting clang's __builtin_object_size, so we're eliding all of the checks, but then we're passing that value through unmodified to this function, which now does checks against it.
These functions should *never* be called with bos == __FORTIFY_UNKNOWN_SIZE and should have an assert to that effect.
I'm stopping individual reviews at this point, as every single function appears to reproduce the same logic errors.