Skip to content

Conversation

@dpelissiry
Copy link

Fixed uninitialized pointers when compiling mapcache with PCRE2 which was leading to segmentation faults. Compiled locally and viewed the faults occurring with the previous code by running mapcache.fcgi, and now working as expected with the fix.

For context into the issue:
When using MapCache regex dimensions on MS4W, both Apache (httpd.exe) and mapcache_seed consistently crash with an access violation in pcre2-8.dll. This reproduces on both a fresh MS4W install and an existing setup, and only occurs when regex dimensions are used. After digging into the MapCache source, it appears the PCRE2 code path for regex dimensions may be using uninitialized values when calling pcre2_compile and pcre2_match, which could explain the crashes. I was also wondering if there is an MS4W build available that uses the legacy PCRE instead of PCRE2, as a possible workaround.

@jmckenna jmckenna added this to the 1.16.0 milestone Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants