Re: [pcre-dev] A test for the memory mismatch problem

Góra strony
Delete this message
Autor: Sheri
Data:  
Dla: pcre-dev
Temat: Re: [pcre-dev] A test for the memory mismatch problem
Sheri wrote:
> Is there anything I could do building 7.0 the old way, and changing
> 7.0's pcretest.c or pcre.h to help you (for comparison purposes)?
>
> Regards,
> Sheri
>
>
>

I compiled your pcretest.c using 7.0 headers, 7.0 pcre_tables.c and 7.1
print*.src, then linked it against 7.0 pcre.dll.

I get this lovely output.

=============================
pcre_malloc set to 00402965
address of gotten_store is 0040B0D0
PCRE version 7.0 18-Dec-2006

re> /(a)b|/I

gotten_store (0040B0D0) set to 62
malloc        62 003D3F70
address of gotten_store is 0040B0D0
regex_gotten_store = 62
Capturing subpattern count = 1
No options
No first char
No need char
============================


Also tried building 7.1 RC3 with at least malloc and free altered in
pcre_globals.c. Saw some warnings about returning things for voids.
Tried the pattern in pcretest (libraries and pcretest compiled and
linked by new style configure/make) and nothing changed, still malloc
was zero.

Regards,
Sheri