Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 3d965b33 authored by Kees Cook's avatar Kees Cook
Browse files

fortify: Improve buffer overflow reporting

Improve the reporting of buffer overflows under CONFIG_FORTIFY_SOURCE to
help accelerate debugging efforts. The calculations are all just sitting
in registers anyway, so pass them along to the function to be reported.

For example, before:

  detected buffer overflow in memcpy

and after:

  memcpy: detected buffer overflow: 4096 byte read of buffer size 1

Link: https://lore.kernel.org/r/20230407192717.636137-10-keescook@chromium.org


Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent fa4a3f86
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment