Re: [PATCH] Fix vfwscanf(3) assignment suppression flag handling bug
Corinna Vinschen <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
On Jun 1 10:33, Lucio Andrés Illanes Albornoz wrote: > newlib's vfwscanf(3) (or specifically, __SVFWSCANF_R()) fails to correctly set > the assignment-suppressing character (`*') flag[1] which, when present in the > formatting string, results in undefined behaviour comprising retrieving and > dereferencing a pointer that was not supplied by the caller as such or at all. > When compared to the vfscanf(3) implementation, this would appear to be over > the missing goto match_failure statement preceded by the flags test seen below. > Hence, this patch (re)introduces it. > > [1] <http://pubs.opengroup.org/onlinepubs/009695399/functions/fwscanf.html> Pushed. Thanks, Corinna -- Corinna Vinschen Cygwin Maintainer Red Hat
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlz03TYACgkQ9TYGna5E T6DIDw/9Gy0N3hz9iIaUhVQHjltMDngPY+cDMh23RDfx+u6G4Z4niqjDsy+tZ08W gHlr3V/tmNKPvbijVE3rgo6ulGtYdT6IDwNZExVANgcpJWDLIOexh8mK5z0aIk+s SYcaO64os/tmqoPlq6of+C2EHbv61vQS9PCqRgSnLyerbtWImwn+SA81iGhJmYl0 beQCtEI0lFdL1I2WNRW4xaCAUqQOpaDib2jxlNr9Mht5uz/N81F/2nuovj7NIs0X 9e60aGTIlU0GoQqayONn8MM2iL/PX/dlrHi5z785eHVxaa8fZa7O9O2k0lXBACA4 Rmurlu1vBPTMERXMwtSRuO5cLEDi8I5P4q5j/fDJ32h40gta0iwYq3YTvX9xgSmD heYZ3Pq0nibA4gZLghawaERV7IPs1Bsb3kqJse9gTkEDhyvjV7CJJTKizaWejpIJ WZ4UcvBFggn9K1xcQqneFQZudN8bv47HSV7DSVIJOplyBBNYxGoCO1tnCpzb6T3E Gr/Tx9EfrDeLXr9isyHOLwyi4mDlolO4V/iB/lbLGJb0dYewzxmBNp2Lo4Os5N9e XdHu/23GcmVfX/Q0OwAcLOYEAmM+G6751Gfhl4PF+Dse8LndRdO3RoUUxLp55EfC jnTVh85k6leoV3BlXQC2CUaN75Ie2qwG8CIRFMQ9EH3jAIR0No4= =poAK -----END PGP SIGNATURE-----