summaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)Author
2024-06-06Use strict prototypesChristian Göttsche
Use the special value void as parameter for functions taking nor argument.
2024-06-06Fix missing token in config dumpChristian Göttsche
2024-06-06Reorder calloc(3) argumentsChristian Göttsche
Please GCC: In file included from /usr/include/php/20220829/Zend/zend.h:30, from /usr/include/php/20220829/main/php.h:31, from /usr/include/php/20220829/main/SAPI.h:20, from src/php_snuffleupagus.h:37, from src/sp_ifilter.c:1: src/sp_pcre_compat.h: In function 'sp_regexp_compile': src/sp_pcre_compat.h:38:36: warning: '__zend_calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 38 | sp_regexp *ret = pecalloc(sizeof(sp_regexp), 1, 1); | ^~~~~~~~~ /usr/include/php/20220829/Zend/zend_alloc.h:199:72: note: in definition of macro 'pecalloc' 199 | #define pecalloc(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc((nmemb), (size))) | ^~~~~ src/sp_pcre_compat.h:38:36: note: earlier argument should specify number of elements, later size of each element 38 | sp_regexp *ret = pecalloc(sizeof(sp_regexp), 1, 1); | ^~~~~~~~~ /usr/include/php/20220829/Zend/zend_alloc.h:199:72: note: in definition of macro 'pecalloc' 199 | #define pecalloc(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc((nmemb), (size))) | ^~~~~
2024-03-08Update the deprecation checksjvoisin
2024-01-26Bail early in case of invalid config in PHP_RINIT_jvoisin
2024-01-15Add a test for issue #479jvoisin
2024-01-09Add some comments to a rulejvoisin
This should help diagnose https://github.com/jvoisin/snuffleupagus/issues/477
2023-12-13print key and value on INI violationsChristian Göttsche
On violations of INI settings include the key and if appropriate the value in the log message. This helps to locate offenders and fine tune the configuration itself.
2023-12-07make 'phar' filenames work in sp.disabled_functions, fixes #472brown-midas
2023-11-26Fix typosChristian Göttsche
2023-09-20Bump the changelogv0.10.0jvoisin
2023-09-18Get rid of some travis-ci leftoversjvoisin
2023-08-02Update broken_conf_no_file_specified.phptPete Cooper
typo
2023-08-02Update loading.phptPete Cooper
typo
2023-08-02Update snuffleupagus.cPete Cooper
typo
2023-06-25Fix an unserialize-related warningjvoisin
This should fix `Warning: unserialize(): Extra data starting at offset 8 of 72 bytes in unserialize.php on line 4`. On the flip side, it's not longer possible in PHP8.3 and above, when using Snuffleupagus, to have other extensions hooking unserialize().
2023-06-25Remove ZEND_HOTjvoisin
2023-04-29Improve how the parser is generatedjvoisin
- use long variant of options for re2c in its makefile - use `define` instead of magic numbers - add some consts - trailing `;` are now mandatory for conditions - NULL bytes are no longer allowed in configuration file - the parser shouldn't crash in the absence of trailing new line at the end of its configuration file
2023-04-12Make readonly_exec play nice on readonly filesystemsjvoisin
2023-04-04check during configure for NTS/ZTS buildRemi Collet
2023-02-02Url encode functions arguments when logging themjvoisin
2023-02-01Fix a possible NULL-byte truncation when outputting parameters in the logsjvoisin
2023-01-31Add sp.log_max_lenjvoisin
2023-01-04Fix the CI for PHP8.2jvoisin
2023-01-03Bump the changelogv0.9.0jvoisin
2022-12-11Remove the useless windows configuration filejvoisin
2022-12-11Add support for PHP8.2jvoisin
2022-12-10Fix a minor typo in the testsuitejvoisin
2022-12-10Even more changes to accomodate PHP8.2jvoisin
2022-12-09Portability improvements for PHP8.2jvoisin
2022-12-08Add unserialize_noclassjvoisin
2022-12-07Minor refactorjvoisin
2022-10-13Revert "Minor refactor"Patrick Allaert
This reverts commit 90bdf39000d2f09534b387d39203819995fb948e. Caused compilation failure with PHP compiled with ZTS.
2022-10-09Revert the previous commitjvoisin
2022-10-01Fix an overzealous `const`jvoisin
2022-08-27Bump the changelogv0.8.3jvoisin
2022-08-21Fix sloppy comparisonjvoisin
2022-07-20Merge branch 'master' into pr1BeF
2022-07-20fixed cookie config parsing with same cookie name (update instead of ignore)Ben Fuhrmannek
2022-07-20fixed mem leak while parsing cookie configBen Fuhrmannek
2022-07-20add disabled functions return type to config exportBen Fuhrmannek
2022-07-18Remove a superfluous conditionjvoisin
2022-07-18added config error for ini rules with identical keyBen Fuhrmannek
2022-07-18fixed crash when exporting function list (rare edge case problem)Ben Fuhrmannek
2022-07-17added full relro protection if the linker supports -zBen Fuhrmannek
2022-07-15Minor refactorjvoisin
2022-07-14Minor refactoringjvoisin
2022-07-13Remove some useless conditionsjvoisin
2022-07-13Even more const!jvoisin
2022-07-13More micro-optimizationsjvoisin