[pcre-dev] [Bug 1801] Test #18 fails

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1801] Test #18 fails
https://bugs.exim.org/show_bug.cgi?id=1801

--- Comment #4 from Roy Ivy III <Roy.Ivy.III@???> ---
Yes, that fixes it.

To check on a bugged 'snprintf()' function, I added MSVC compilation to my
build script (https://github.com/rivy/PCRE). And it does test successfully,
lending credence to the bug supposition.

The possible bug seems to be in gcc 5.1.0 (MinGW-W64 line, tdm multi-lib
version). I also tested another version of gcc (4.8.3, included with strawberry
perl, also of the MinGW line), and it too shows the same error.

I'll try to investigate further and push a bug report to MinGW GCC, when I get
a chance.

One additional niggle, discovered when compiling with MSVC, is that MSVC shows
a warning for "src\pcre2test.c" being not "const-correct" @ lines 3896 and
3908. Changing lines #3853-4 from:

```
const void *nametable;
const uint8_t *start_bits;
```

to

```
void *nametable;
uint8_t *start_bits;
```

fixes the warning.

I can open this as another (low-priority) bug if you'd like...

--
You are receiving this mail because:
You are on the CC list for the bug.