aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2022-01-27 20:12:32 +0200
committerPetr Mladek <[email protected]>2022-02-10 13:16:50 +0100
commitd75b26f880f60ead301e79ba0f4a635c5a60767f (patch)
tree5c99a6af6518edb2f07237cc519dbf41f479bf56 /lib/test_fortify/write_overflow-memcpy.c
parenta229327733b86aa585effdb0d27a87b12aa51597 (diff)
vsprintf: Fix potential unaligned access
The %p4cc specifier in some cases might get an unaligned pointer. Due to this we need to make copy to local variable once to avoid potential crashes on some architectures due to improper access. Fixes: af612e43de6d ("lib/vsprintf: Add support for printing V4L2 and DRM fourccs") Cc: Sakari Ailus <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions