Re: [PATCH gpgme] Fix an uninitialized variable.
Werner Koch via Gnupg-devel <[email protected]> Sat, 05 Jul 2025 13:06:38 +0200
| Newsgroups | gmane.comp.encryption.gpg.devel |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ Gnupg-devel mailing list [email protected] https://lists.gnupg.org/mailman/listinfo/gnupg-devel
openpgp-digital-signature.asc
(application/pgp-signature, 247 B)
-----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCaGkHPg0cd2tAZ251cGcu b3JnAAoJEBnMHJ4IWxB6tMoBALVpISkeolL/ahZTptHj1R92ZNA3NuM2nP+J493r LOwBAP48I9NsJFs6ZF1eL04/uWleADFtG3qhZZflJfd1hAkaAA== =3B8s -----END PGP SIGNATURE-----