This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use read_int in vfscanf


On Thu, 6 Oct 2016 14:21:39 +0200
Florian Weimer <fweimer@redhat.com> wrote:

> 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.

Thanks.  Pushed as 726d48ec.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]