Re: [pcre-dev] PCRE2 10.35-RC1 testing release is available

Pàgina inicial
Delete this message
Autor: Petr Pisar
Data:  
A: pcre-dev
Assumpte: Re: [pcre-dev] PCRE2 10.35-RC1 testing release is available
On Wed, Apr 15, 2020 at 05:39:34PM +0100, ph10@??? wrote:
> I've just put the 10.35-RC1 testing release here:
>

All tests pass with JIT enabled where available on GNU/Linux on these
platforms:

aarch64
armv7hl
i686
ppc64le
s390x
x86_64

I also enabled CET by adding --fcf-protection -mshstk. But I have no hardware to test it.

I noticed a new warning with GCC 10:

gcc -DHAVE_CONFIG_H -I. -I./src  "-I./src"     -pthread -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mshstk  -c -o src/pcre2test-pcre2test.o `test -f 'src/pcre2test.c' || echo './'`src/pcre2test.c
src/pcre2test.c: In function 'copy_and_get':
src/pcre2test.c:3062:27: warning: array subscript -1 is outside array bounds of 'uint32_t[256]' {aka 'unsigned int[256]'} [-Warray-bounds]
 3062 | if (length < 0) length = p[-1];
      |                          ~^~~~
src/pcre2test.c:6374:12: note: while referencing 'copybuffer'
 6374 |   uint32_t copybuffer[256];
      |            ^~~~~~~~~~
src/pcre2test.c:3062:27: warning: array subscript -1 is outside array bounds of 'uint32_t[256]' {aka 'unsigned int[256]'} [-Warray-bounds]
 3062 | if (length < 0) length = p[-1];
      |                          ~^~~~
src/pcre2test.c:6410:12: note: while referencing 'copybuffer'
 6410 |   uint32_t copybuffer[256];
      |            ^~~~~~~~~~
src/pcre2test.c: In function 'process_data':
src/pcre2test.c:3062:27: warning: array subscript -1 is outside array bounds of 'uint8_t[1024]' {aka 'unsigned char[1024]'} [-Warray-bounds]
 3062 | if (length < 0) length = p[-1];
      |                          ~^~~~
src/pcre2test.c:7283:11: note: while referencing 'nbuffer'
 7283 |   uint8_t nbuffer[REPLACE_BUFFSIZE];
      |           ^~~~~~~
-- Petr