@RichFelker An array access will also be caught by -fsanitize=object-size since it's the same thing as FORTIFY for all pointer arithmetic.
-
-
-
@RichFelker Can't have both alloc_size on malloc and malloc_usable_size. Android deprecated then removed malloc_usable_size for new code. -
@RichFelker It would be a bigger problem if FORTIFY was better. Clang/GCC are missing a variant of the object size intrinsic for runtime. -
@RichFelker They could have __builtin_runtime_object_size to propagate N from malloc(N) when the compiler can successfully trace back to it. -
@RichFelker The current intrinsic mixes the concerns of the compile-time and runtime checks, so it misses many cases that it could handle.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.