https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109120

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Looks like the attribute was added to iconv_open in glibc in this commit:

https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=260a430dd841072020c4dae91468322e619e7330

Unfortunately, as currently written, the analyzer assumes that such
acquire/release pairs work on pointers, and, in particular, that NULL is the
failure value, rather than -1.

Reply via email to