This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: avoid compiler warning in regex matcher
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Tue, 28 Feb 2012 10:43:30 +0100
- Subject: Re: avoid compiler warning in regex matcher
- References: <4F4C1D47.9070703@redhat.com>
- Reply-to: newlib at sourceware dot org
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