Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#15 BUG: core dump on 64-bit platform

open
nobody
None
5
2005-11-01
2005-11-01
algonaut
No

When I do 'make test', I get a core dump inside
pcre_fullinfo simply because of the following

case PCRE_INFO_OPTIONS:
*((unsigned long int *)where) = re->options &
PUBLIC_OPTIONS;
break;

where is actually a pointer to a 32 bit integer and
unsigned long int is 64 bit. When I change the cast to
(int *), 'make test' ends up with many errors without
core dump.

I download 6.3 today. This problem is found on solaris
8 using gcc 3.4 and SunCC.

Discussion

  • Logged In: NO

    It is documented that "where" must point to an unsigned long int variable. (Comment from PH)