Re: [privoxy-commits] current/pcre pcre.c,1.2,1.3

Lee <[email protected]> Sun, 17 Jan 2016 12:37:20 -0500
Newsgroups gmane.comp.web.privoxy.devel
Message-ID <CAD8GWsvfKRt_6iE2J4_xLtVEST4EtgnzN31kUxD_01S5smU-vg@mail.gmail.com>
> Fix compiler warnings

creates one for me:

gcc -c -pipe -O2 -DWINVER=0x501   -mwindows -mno-cygwin -Wall -Ipcre
pcre/pcre.c -o pcre/pcre.o
pcre/pcre.c: In function `pcre_compile':
pcre/pcre.c:3021: warning: comparison is always false due to limited
range of data type


"pcre.c" line 3021
      if ((int)ptr[1] >= tables_length - ctypes_offset)

Lee


On 1/17/16, Fabian Keil <[email protected]> wrote:
> Update of /cvsroot/ijbswa/current/pcre
> In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv3026/pcre
>
> Modified Files:
> 	pcre.c
> Log Message:
> Fix compiler warnings
>
>
> Index: pcre.c
> ===================================================================
> RCS file: /cvsroot/ijbswa/current/pcre/pcre.c,v
> retrieving revision 1.2
> retrieving revision 1.3
> diff -C2 -d -r1.2 -r1.3
> *** pcre.c	16 Jan 2016 12:28:43 -0000	1.2
> --- pcre.c	17 Jan 2016 14:31:59 -0000	1.3
> ***************
> *** 3014,3023 ****
>         runlength++;
>
> !       if (ptr > pattern + pattern_length)
>           {
>           *errorptr = "internal error";
>           goto PCRE_ERROR_RETURN;
>           }
> !       if (ptr[1] >= tables_length - ctypes_offset)
>           {
>           *errorptr = ERR6;
> --- 3014,3023 ----
>         runlength++;
>
> !       if ((const char *)ptr > pattern + pattern_length)
>           {
>           *errorptr = "internal error";
>           goto PCRE_ERROR_RETURN;
>           }
> !       if ((int)ptr[1] >= tables_length - ctypes_offset)
>           {
>           *errorptr = ERR6;
>
>
> ------------------------------------------------------------------------------

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140