avoid compiler warning in regex matcher
Corinna Vinschen
vinschen@redhat.com
Tue Feb 28 13:06:00 GMT 2012
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
More information about the Newlib
mailing list