summaryrefslogtreecommitdiff
path: root/src/sp_utils.c (follow)
AgeCommit message (Collapse)Author
2018-08-30Minor code cleanupxXx-caillou-xXx
2018-08-30Match on ret improvementsxXx-caillou-xXx
This commit does two things: - Implement matching on calltraces for ret - Implement matching on ret of user functions if the return value is not used.
2018-08-28Fix some compilation warningsxXx-caillou-xXx
2018-08-28Use php's logging functionsxXx-caillou-xXx
This commit replace our usage of `php_log_err` with `zend_error`. This should allow administrators to display errors in the webpage, should they want to; and to properly manipulate the verbosity's level. This should close #217
2018-07-13Yet an other pass of clang-formatjvoisin
2018-07-13Fix various possible integer overflowsxXx-caillou-xXx
2018-07-13Massively optimize how rules are handledxXx-caillou-xXx
This commit does a lot of things: - Use hashtables instead of lists to store the rules - Rules that can be applied at launch time won't be tried at runtime - Improve feedback when writing nonsensical rules - Make intensive use of `zend_string` instead of `char*`
2018-05-15Refactor the encryption process to extract encrypt/decrypt functions (#176)kkadosh
Refactor the encryption process to extract encrypt/decrypt functions
2018-05-03Uniformise some logssimon MAGNIN-FEYSOT
This commit will make certain logs easier to parse.
2018-03-19The filename filter is now matching on callsite instead of implemsite (#167)kkadosh
* Add match on the file where the function is called * Add the test * Constify some params * Fix potentiel null deref * Return more before if execute_data is NULL
2018-03-08Make travis happy.jvoisin
2018-03-08Minor code simplificationjvoisin
2018-03-08Remove some duplicate codejvoisin
2018-03-02Implement dump() for execution of writable PHP fileskkadosh
2018-02-27Implements .dump() for unserialize and fix some related testskkadosh
2018-02-05Massive simplification of functions hookingjvoisin
2018-02-05Compatibility layer for pcre2jvoisin
This should close #129
2018-02-05Fix a oncst-related warningjvoisin
2018-01-17Remove useless "head" member in our linked lists implementationsimon MAGNIN-FEYSOT
This should close #85
2018-01-17Fix a minor warningjvoisin
2018-01-15Minor simplificationjvoisin
2018-01-15Fix an other off-by-onejvoisin
2018-01-15Fix some memleaksjvoisin
2018-01-11Remove some legacy codejvoisin
2018-01-10Rework the priority of bl/wl in evaljvoisin
2017-12-28Clang-format passThibault "bui" Koechlin
- `clang-format --style="{BasedOnStyle: google, SortIncludes: false}" -i snuffleu*.c sp_*.c sp_*.h` - Update the documentation accordingly
2017-12-20Better parsing of the rulesxXx-caillou-xXx
Thanks to this huge commit from @xXx-caillou-xXx, we can now write amazingly flexible rules.
2017-12-06Vastly simplify the dumping of zval in `.dump`jvoisin
2017-12-06Fix a format string, thanks to coverityjvoisin
2017-12-05Dump environnement variables (#83)jvoisin
Apparently, PHP thinks that it's a great idea to type environnement variables, because why not.
2017-12-04Improve the `.dump` filterjvoisin
2017-12-01Add a test that used to segfaultjvoisin
2017-12-01Fail sooner when not able to create the folder to dumpjvoisin
2017-12-01Vastly simplify the dumping processjvoisin
2017-11-29Implement eval hookingjvoisin
It's not possible to hook the `eval` builtin like other functions.
2017-11-13Fix a silly warningjvoisin
2017-10-31Remove an unused variablejvoisin
2017-10-30Fix a silly TOCTOU to make coverity happyjvoisin
2017-10-30Minor code cleanupjvoisin
2017-10-17Use assert instead of sp_log_err for something that shouldn't happenjvoisin
2017-10-13Maybe this will address #35jvoisin
- We shouldn't assume that people are only using regexps - Make an internal function a bit more obvious
2017-10-13Partially revert d8ac163 because php.jvoisin
2017-10-13Fix some pedantic warningsjvoisin
2017-10-13Fix the size of the output vector in our usage of pcrejvoisin
2017-10-12Minor refactoringjvoisin
- use the `is_regexp_matching` function when possible - check parameters before passing it to `pcre_exec` - improve error messages wrt. regexp
2017-10-11Add some more debug to the regexp thingyjvoisin
2017-10-11Add some info when a regexp failsjvoisin
2017-10-10Make the `simulation` mode logs more obviousjvoisin
2017-09-25Fix minor coverity issuesjvoisin
2017-09-22Improve a bit the .travis.yml filejvoisin