[Bug analyzer/94365] false positive leak when using container_of-like constructs
dimitri at ouroboros dot rocks
gcc-bugzilla@gcc.gnu.org
Sat Jun 12 09:19:27 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94365
dimitri at ouroboros dot rocks changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dimitri at ouroboros dot rocks
--- Comment #1 from dimitri at ouroboros dot rocks ---
Thanks for filing this one.
We're using a double-linked-list implementation which also has this construct
using offsetof and are also seeing false positives in these parts of the code.
I thought the analyzer may have trouble with the list pointers, but I think it
will actually be the offsetof that is causing it.
More information about the Gcc-bugs
mailing list