* [analyzer] __attribute__((malloc)) when pointer is returned in argument
@ 2024-05-18 22:59 Alon Bar-Lev
0 siblings, 0 replies; only message in thread
From: Alon Bar-Lev @ 2024-05-18 22:59 UTC (permalink / raw)
To: gcc-help
[-- Attachment #1: Type: text/plain, Size: 419 bytes --]
Hello,
I have the following case:
int allocator1(void **handle);
void deallocator1(void *handle);
aka:
void *handle = NULL;
allocator1(&handle);
deallocator1(handle);
How do I express this for -fanalizer? As far as I could see the
__attribute__((malloc)) assumes that the return value is the pointer, I
could not find how to let it know that the pointer is returned in a
parameter.
Thanks,
Alon
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-18 23:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-18 22:59 [analyzer] __attribute__((malloc)) when pointer is returned in argument Alon Bar-Lev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).