This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: avoid compiler warning in regex matcher


On Feb 27 17:18, Eric Blake wrote:
> I'm not sure if this warning is the sign of a real exploitable bug, but
> better safe than sorry:
> 
> ../../../../../newlib/libc/posix/engine.c: In function smatcher:
> ../../../../../newlib/libc/posix/engine.c:184:5: warning: array
> subscript has type char
> ../../../../../newlib/libc/posix/engine.c:185:6: warning: array
> subscript has type char
> ../../../../../newlib/libc/posix/engine.c:201:5: warning: array
> subscript has type char
> 
> OK to apply?
> 
> 
> 2012-02-27  Eric Blake  <...>
> 
> 	* libc/posix/engine.c (matcher): Avoid negative index.

Sure, go ahead!


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


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