aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorKunwu Chan <[email protected]>2023-12-04 10:32:23 +0800
committerMichael Ellerman <[email protected]>2023-12-13 22:13:41 +1100
commitf46c8a75263f97bda13c739ba1c90aced0d3b071 (patch)
tree141cd712c2036c8907a149881f8c81c36e4bbc73 /lib/test_fortify/write_overflow-strncpy-src.c
parentb20f98e8b3deb50247603f0242ee2d1e38726635 (diff)
powerpc/mm: Fix null-pointer dereference in pgtable_cache_add
kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity. Suggested-by: Christophe Leroy <[email protected]> Suggested-by: Michael Ellerman <[email protected]> Signed-off-by: Kunwu Chan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions