[all-commits] [llvm/llvm-project] 5a2e59: [analyzer] Fix Static Analyzer g_memdup false-posi...
Balazs Benics via All-commits
all-commits at lists.llvm.org
Mon May 2 01:36:23 PDT 2022
Author: Balazs Benics <balazs.benics at sigmatechnology.se>
Date: 2022-05-02 (Mon, 02 May 2022)
[analyzer] Fix Static Analyzer g_memdup false-positive
`g_memdup()` allocates and copies memory, thus we should not assume that
the returned memory region is uninitialized because it might not be the
PS: It would be even better to copy the bindings to mimic the actual
content of the buffer, but this works too.
Reviewed By: martong
Differential Revision: https://reviews.llvm.org/D124436
More information about the All-commits