Paul Eggert wrote:
> * lib/getopt.c (process_long_option): Simplify logic slightly.
> This pacifies gcc -flto -Wanalyzer-null-dereference when compiling
> GNU tar on x86-64 with gcc 13.2.1 20231205 (Red Hat 13.2.1-6).

This appears to trade a false alarm for another false alarm. Namely,
now Coverity reports:

270                           }
271                         if (ambig_set)
>>> CID 1574557:  Memory - corruptions  (ARRAY_VS_SINGLETON)
>>> Using "ambig_set" as an array.  This might corrupt or misinterpret adjacent 
>>> memory locations.
272                           ambig_set[option_index] = 1;

I guess we can ignore it?

Bruno




Reply via email to