Skip to content

Use internal PCRE based implementation of regular expressions instead of std C++ regex library. #1164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from

Conversation

phantom-az
Copy link
Contributor

With that change d83987c we move from std c++ implementation of regex to custom (pcre driven) version of regex. Unbreaking unit_test runtime for gcc 4.8 based OSes

Alexey Zelkin added 7 commits June 15, 2016 16:10
…e fixes SIGILLs on executable built with clang 3.4.

Tested against FreeBSD 10.3.
For some reason plain call to "ret.append(&b)" copy 32 bit of data.  This change unbreaks
CmdLine unit tests for FreeBSD 10, CentOS 7, RHEL 7 and Debian 8.
Previous versions of bison proven to generate broken code which caused to assert() regression
tests of libmodsecurity for clang 3.4 and gcc 4.8.  Upgrading bison to 3.0.4 solved mentioned issues
for FreeBSD 10, CentOS 7, RHEL 7 and Ubuntu 14.
C++ regex library proven to be unusable for gcc 4.8 and earlier version, so
reimplement code using PCRE library in order to build workable version of
unit_test executable for CentOS 7, RHEL 7, Ubuntu 14 and SUSE Linux 12.
… of std C++ regex library.

C++ regex library proven to be unusable for gcc 4.8 and earlier version, so
reimplement code using PCRE library in order to build workable version of
unit_test executable for CentOS 7, RHEL 7, Ubuntu 14 and SUSE Linux 12.
@phantom-az
Copy link
Contributor Author

phantom-az commented Jun 16, 2016

Here's a compilation fix missed on previous merge. Required to compile multithread_c example on FreeBSD 10 and CentOS 7
aa88fd6

@zimmerle
Copy link
Contributor

Merged! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants