Skip to content

Commit 865b75b

Browse files
authored
Merge branch 'owasp-modsecurity:v3/master' into v3/release2408
2 parents 542a5ea + f180e64 commit 865b75b

File tree

217 files changed

+4312
-4899
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+4312
-4899
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
env:
6767
CC: ${{ matrix.compiler.cc }}
6868
CXX: ${{ matrix.compiler.cxx }}
69-
run: ./configure ${{ matrix.platform.configure }} ${{ matrix.configure.opt }}
69+
run: ./configure ${{ matrix.platform.configure }} ${{ matrix.configure.opt }} --enable-assertions=yes
7070
- uses: ammaraskar/gcc-problem-matcher@master
7171
- name: make
7272
run: make -j `nproc`
@@ -78,7 +78,7 @@ jobs:
7878
runs-on: ${{ matrix.os }}
7979
strategy:
8080
matrix:
81-
os: [macos-12]
81+
os: [macos-14]
8282
configure:
8383
- {label: "with parser generation", opt: "--enable-parser-generation" }
8484
- {label: "wo curl", opt: "--without-curl" }
@@ -91,10 +91,12 @@ jobs:
9191
- {label: "with pcre2", opt: "--with-pcre2" }
9292
steps:
9393
- name: Setup Dependencies
94-
# autoconf, curl, pcre2 not installed because they're already
94+
# curl, pcre2 not installed because they're already
9595
# included in the image
9696
run: |
97-
brew install automake \
97+
brew install autoconf \
98+
automake \
99+
libtool \
98100
yajl \
99101
lmdb \
100102
lua \
@@ -112,7 +114,7 @@ jobs:
112114
- name: build.sh
113115
run: ./build.sh
114116
- name: configure
115-
run: ./configure ${{ matrix.configure.opt }}
117+
run: ./configure ${{ matrix.configure.opt }} --enable-assertions=yes
116118
- uses: ammaraskar/gcc-problem-matcher@master
117119
- name: make
118120
run: make -j `sysctl -n hw.logicalcpu`
@@ -130,11 +132,11 @@ jobs:
130132
configuration: [Release]
131133
configure:
132134
- {label: "full", opt: "" }
133-
- {label: "wo curl", opt: "-DWITHOUT_CURL=ON" }
134-
- {label: "wo lmdb", opt: "-DWITHOUT_LMDB=ON" }
135-
- {label: "wo lua", opt: "-DWITHOUT_LUA=ON" }
136-
- {label: "wo maxmind", opt: "-DWITHOUT_MAXMIND=ON" }
137-
- {label: "wo libxml", opt: "-WITHOUT_LIBXML2=ON" }
135+
- {label: "wo curl", opt: "-DWITH_CURL=OFF" }
136+
- {label: "wo lua", opt: "-DWITH_LUA=OFF" }
137+
- {label: "wo maxmind", opt: "-DWITH_MAXMIND=OFF" }
138+
- {label: "wo libxml", opt: "-DWITH_LIBXML2=OFF" }
139+
- {label: "with lmdb", opt: "-DWITH_LMDB=ON" }
138140
steps:
139141
- uses: actions/checkout@v4
140142
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ ltmain.sh
5050
examples/simple_example_using_c/test
5151
/tools/rules-check/modsec-rules-check
5252
examples/multiprocess_c/multi
53+
examples/multithread/multithread
5354
examples/reading_logs_via_rule_message/simple_request
5455
examples/reading_logs_with_offset/read
5556
examples/using_bodies_in_chunks/simple_request

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,16 @@ CFLAGS to disable the compilation optimization parameters:
236236
```shell
237237
$ export CFLAGS="-g -O0"
238238
$ ./build.sh
239-
$ ./configure
239+
$ ./configure --enable-assertions=yes
240240
$ make
241241
$ sudo make install
242242
```
243+
"Assertions allow us to document assumptions and to spot violations early in the
244+
development process. What is more, assertions allow us to spot violations with a
245+
minimum of effort." https://dl.acm.org/doi/pdf/10.1145/240964.240969
246+
247+
It is recommended to use assertions where applicable, and to enable them with
248+
'--enable-assertions=yes' during the testing and debugging workflow.
243249

244250
### Benchmarking
245251

0 commit comments

Comments
 (0)