crowdsec/pkg/exprhelpers
Thibault "bui" Koechlin a4dc5053d2
fix null deref in cti calls if key is empty (#2540)
* fix null deref in cti calls if key is empty

* avoid hardcoded error check
2023-10-17 09:34:53 +01:00
..
tests skip empty lines to avoid issue of #630 (#631) 2021-02-25 09:57:24 +01:00
crowdsec_cti.go fix null deref in cti calls if key is empty (#2540) 2023-10-17 09:34:53 +01:00
crowdsec_cti_test.go fix null deref in cti calls if key is empty (#2540) 2023-10-17 09:34:53 +01:00
expr_lib.go fix the float comparison by using Abs(a,b) < 1e-6 approach (IEEE 754). Move the initializiation of expr helpers (#2492) 2023-09-28 17:22:00 +02:00
exprlib_test.go update dependency on go-cs-lib; drop the pkg/ part (#2393) 2023-07-28 16:35:08 +02:00
helpers.go Load file only once if specified twice, and bail earlier if type is unknown (#2419) 2023-10-13 22:34:57 +01:00
jsonextract.go Unmarshal Json (#2414) 2023-08-09 09:42:08 +01:00
jsonextract_test.go Add ParseKV helper and rework UnmarshalJSON as a proper helper (#2184) 2023-05-12 09:43:01 +02:00
strings.go add a LogInfo expr helper (#2179) 2023-05-03 10:07:11 +02:00
visitor.go Minor cleanup and dead code removal (#2166) 2023-04-12 16:57:38 +02:00
visitor_test.go actually fix expr-debugger to work with the new version (#2124) 2023-03-16 15:20:48 +01:00
xml.go use expr.Function for custom functions instead of passing them in the env (#2133) 2023-03-28 10:49:01 +02:00
xml_test.go use expr.Function for custom functions instead of passing them in the env (#2133) 2023-03-28 10:49:01 +02:00