Commit Graph

17656 Commits (106e09ed5702dc3072ee8dbcf32c8562157eabd2)
 

Author SHA1 Message Date
Jason Ish 106e09ed57 github-ci: add windows ucrt build
MSYS2 now recommends the UCRT environment as the default, so we should
probably add a CI job for it.
10 months ago
Jason Ish f35a56fa65 doc/code-style: add rust; minor cleanups
- Add small section on Rust code, and Rust code exposed to FFI.
- Other minor cleanups.

Ticket: #7078
Ticket: #6955
10 months ago
Jason Ish 249bd32a9d doc/userguide/code-style: update header ordering
To match our recommended header ordering.
10 months ago
Shivani Bhardwaj 6a6104304d version: start development towards 8.0.0 10 months ago
Shivani Bhardwaj cdfebcdc9c release: 8.0.0-rc1; update changelog 10 months ago
Andreas Herz 173132b05b detect/dataset: skip adding localstatedir if fullpath is provided
When the option to set a full path is enabled and a full path is
provided, skip adding the prefix (based on localstatedir) to the
directory since it would be unexpected and unwanted by a user.

Ticket: 7083
10 months ago
Eric Leblond 8f26b4a0ff datajson: limit impact of feature for non user
The det_ctx structure was inflated by the additoin of the array to
handle JSON context. This commit updates the code to use a growing
buffer and limit the impact.
10 months ago
Victor Julien 36ecda3ea2 detect/alert: optimize context cleanup
Don't always loop over each alert, but only do so if context was used.
10 months ago
Jason Ish 25b8cd9761 lua: update to lua 5.4.8002
This updated crates remove tmpnam from being linked in, removing the
warning.
10 months ago
Victor Julien 77fb0a1e79 packet: micro optimization in packet recycling 10 months ago
Victor Julien 32223bb6f7 detect: move large array to bottom of detect thread ctx 10 months ago
Eric Leblond 639eb70dda detect/pcre: add needed casts 10 months ago
Eric Leblond f747a3a001 datajson: add needed cast 10 months ago
Eric Leblond cff2198ef3 datajson: fix include in header 10 months ago
Eric Leblond 6e0cad33cb detect: remove some useless tests 10 months ago
Eric Leblond 751f3eef3b doc/userguide: fix some typos 10 months ago
Eric Leblond a297fd029a packet: optimize json context cleaning
We don't need to recycle the full alert array. This is going to
optimize packet recycle time.
10 months ago
Eric Leblond 1deca14331 decode: light refactor on packet cleaning 10 months ago
Eric Leblond 8425eed8cd datasets: improve lock handling
DatasetGetOrCreate should now be called with the dataset lock
hold so the lock management is easier to read.
10 months ago
Eric Leblond 131bfb9679 detect/dataset: fix locking on datajson 10 months ago
Eric Leblond cf7dda354e detect/dataset: check context_key validity
As context_key is an user entry and as it is used to build the JSON
string of alert, we could end up with an invalid event if the string
contains improper characters.
10 months ago
Eric Leblond 803d61c9d1 eve/alert: add comment about string format 10 months ago
Eric Leblond 0f172e721d detect/pcre: fix error handling 10 months ago
Eric Leblond ab5070c0e3 detect/engine: put datajson related code in a func 10 months ago
Eric Leblond e600f40f74 datasets: use SCLogError for errors 10 months ago
Eric Leblond 337472449a detect/engine: remove unused keyword 10 months ago
Eric Leblond cd07db83dc datasets: comment to specify usage of field 10 months ago
Eric Leblond be9e13c6b1 decode: use pointer for PacketContextData
By adding a pointer instead of the structure in the alert info
we spare some memory.
10 months ago
Eric Leblond 92f4b36e72 decode: rename ExtraDataJsonList 10 months ago
Eric Leblond b285894f69 datasets: comments about format 10 months ago
Eric Leblond 449d6fe607 datasets: rename function
DatasetCreateOrGet was in fact doing get or create.
10 months ago
Eric Leblond e0c5302df1 datasets: fix error handling in StringSet 10 months ago
Eric Leblond 9b6047ab3e datasets: factorize set operation 10 months ago
Eric Leblond 3880b8de22 datasjson: fix include barrier name 10 months ago
Eric Leblond be0f5dac0d detect/pcre: fix copyright date 10 months ago
Eric Leblond 43743b0fd3 datajson: key length fix
When using type string, we should not limit the size of the string.

This patch also fixes some implicit cast issues.
10 months ago
Eric Leblond 43a1ef45ca datajson: value_key is necessary in json format 10 months ago
Eric Leblond 6236574b9c doc/userguide: enrichment_key is now context_key 10 months ago
Eric Leblond 62e90206c6 datajson: rename enrichment_key to context_key 10 months ago
Eric Leblond 3e48342248 datajson: factorize code
Code was duplicated and a build error was reported so factorizing
was the best way to clean it.
10 months ago
Eric Leblond df99d29ee4 datajson: add sanity check on length
Also cast to avoid compilation error.
10 months ago
Eric Leblond cfa7a747c2 datajson: use systematic allocation 10 months ago
Eric Leblond d84d7431e4 datajson: more explicit memory handling 10 months ago
Eric Leblond 20a0575d96 doc/userguide: fix some typos
Suggestions from Juliana.

Co-authored-by: Juliana Fajardini Reichow <jufajardini@gmail.com>
10 months ago
Eric Leblond 23f643a4a7 eve/schema: fix ordering 10 months ago
Eric Leblond fed7ff1e76 datasets: remove comment about unused return value 10 months ago
Eric Leblond 79c8f431d0 datajson: simplify memory handling
DatajsonAdd function is now responsible of the handling of the mem
of datajsontype passed as argument.
10 months ago
Eric Leblond 606f7ba656 datajson: use wrapper 10 months ago
Eric Leblond 7e7bd92432 datajson: fix potential leak in error handling 10 months ago
Eric Leblond 4a420085b7 datajson: remove unnecessary abstraction 10 months ago