[PATCH gpgme] Fix an uninitialized variable.

Werner Koch wk at gnupg.org
Sat Jul 5 13:06:38 CEST 2025


On Thu,  3 Jul 2025 20:42, Collin Funk said:

>     for (i=0; !err && argv[i]; i++)

> Basically, the first iteration will always read an uninitialized
> variable. Seems mostly harmless and will probably mostly work, but UB is
> UB. :)

I would not call that a undefined behaviour but a plain bug.  My fault
:-(

Thanks for reporting.


Shalom-Salam,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 247 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20250705/d83ea690/attachment.sig>


More information about the Gnupg-devel mailing list