[PATCH] Use read_int in vfscanf

Florian Weimer fweimer@redhat.com
Thu Oct 6 12:21:00 GMT 2016


On 09/23/2016 03:50 AM, Gabriel F. T. Gomes wrote:

> +	  argpos = read_int ((const UCHAR_T **) &f);

This is a const char * → const unsigned char * cast in the non-wide case 
(and okay), but in the wide case, it goes from const int * to const 
unsigned int *, which is not valid.  This is a pre-existing issue in 
vfprintf.c, so I don't think it should block inclusion of this cleanup.

Florian



More information about the Libc-alpha mailing list