Re: [OS-BUILD PATCHv2] tools: Fix use-after-free for realloc(..., 0)

2022-02-18 Thread Justin M. Forbes (via Email Bridge)
From: Justin M. Forbes on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1594#note_848024026 This is upstream now, closing. ___ kernel mailing list -- kernel@lists.fedoraproject.org To unsubscribe send an email to

Re: [OS-BUILD PATCHv2] tools: Fix use-after-free for realloc(..., 0)

2022-02-14 Thread Justin M. Forbes (via Email Bridge)
From: Justin M. Forbes on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1594#note_842557272 Updated with a new patch from Kees upstream. ___ kernel mailing list -- kernel@lists.fedoraproject.org To unsubscribe send an email to

[OS-BUILD PATCHv2] tools: Fix use-after-free for realloc(..., 0)

2022-02-14 Thread Justin M. Forbes (via Email Bridge)
From: Kees Cook tools: Fix use-after-free for realloc(..., 0) GCC 12 was correctly reporting a potential use-after-free condition in the xrealloc helper. Fix the warning by avoiding an implicit "free(ptr)" when size == 0: In file included from help.c:12: In function 'xrealloc', inlined