<feed xmlns='http://www.w3.org/2005/Atom'>
<title>snuffleupagus/src/sp_utils.h, branch master</title>
<subtitle>Security module for php7 and php8 - Killing bugclasses and virtual-patching the rest! 
</subtitle>
<id>http://git.dustri.org/snuffleupagus/atom?h=master</id>
<link rel='self' href='http://git.dustri.org/snuffleupagus/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/'/>
<updated>2024-06-06T14:36:40Z</updated>
<entry>
<title>Add format attribute to log function and adjust format specifiers</title>
<updated>2024-06-06T14:36:40Z</updated>
<author>
<name>Christian Göttsche</name>
</author>
<published>2024-06-06T14:36:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=849252c6a48b428dde3ad8930b40a2bdf9874cb7'/>
<id>urn:sha1:849252c6a48b428dde3ad8930b40a2bdf9874cb7</id>
<content type='text'>
Annotate the common logging function sp_log_msgf() with the format
attribute so compilers can check the used format string and passed
arguments for discrepancies.

Adjust the lineno printing by using %zu and the type size_t
consistently.
</content>
</entry>
<entry>
<title>Avoid dropping const qualifier in casts</title>
<updated>2024-06-06T14:27:35Z</updated>
<author>
<name>Christian Göttsche</name>
</author>
<published>2024-05-29T18:38:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=f40955e03cd361966f927acfaa477cfceb8930e5'/>
<id>urn:sha1:f40955e03cd361966f927acfaa477cfceb8930e5</id>
<content type='text'>
Adjusts casts to void dropping const qualifiers. This helps to avoid
mistakes, e.g. modifying string literals.

Also use size_t for length, similar to the upstream php interfaces.
</content>
</entry>
<entry>
<title>Even more const!</title>
<updated>2022-07-13T19:25:04Z</updated>
<author>
<name>jvoisin</name>
</author>
<published>2022-07-13T19:25:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=ed87e551efd0160f1944a5e97158ab258db65eaf'/>
<id>urn:sha1:ed87e551efd0160f1944a5e97158ab258db65eaf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>introduced sp_regexp / store original regex</title>
<updated>2022-02-05T11:22:13Z</updated>
<author>
<name>Ben Fuhrmannek</name>
</author>
<published>2022-02-05T11:22:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=323f818a6ce33d021bc0a6d34064598917e68c91'/>
<id>urn:sha1:323f818a6ce33d021bc0a6d34064598917e68c91</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: include class name in eval whitelist matching</title>
<updated>2021-12-14T13:29:43Z</updated>
<author>
<name>Ben Fuhrmannek</name>
</author>
<published>2021-12-14T13:29:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=4a45ba42b609d48c8297456d67cc8d955073b567'/>
<id>urn:sha1:4a45ba42b609d48c8297456d67cc8d955073b567</id>
<content type='text'>
</content>
</entry>
<entry>
<title>added @log logging feature to config parser</title>
<updated>2021-11-30T12:06:53Z</updated>
<author>
<name>Ben Fuhrmannek</name>
</author>
<published>2021-11-30T12:06:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=aa099cd7a4aa5e3296d39158184e301af9ef2f78'/>
<id>urn:sha1:aa099cd7a4aa5e3296d39158184e301af9ef2f78</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config is stack allocated now + some code improvements (see details)</title>
<updated>2021-09-23T10:23:40Z</updated>
<author>
<name>Ben Fuhrmannek</name>
</author>
<published>2021-09-23T10:23:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=54c352c1b5aa08b187dd1e52e544709cad2b0fee'/>
<id>urn:sha1:54c352c1b5aa08b187dd1e52e544709cad2b0fee</id>
<content type='text'>
* for easier memory manegement, the entire sp_config struct was merged into snuffleupagus_globals and allocated on stack where possible
* SNUFFLEUPAGUS_G() can be written as SPG(), which is faster to type and easier to read
* execution_depth is re-initialized to 0 for each request
* function calls with inline string and length parameters consistently use ZEND_STRL instead of sizeof()-1
* execution is actually hooked if recursion protection is enabled
* some line breaks were removed to make the code more readable
</content>
</entry>
<entry>
<title>fincy new scanner/parser for config rules + fixed a few bugs along the way + fixed related unittests</title>
<updated>2021-08-16T13:47:01Z</updated>
<author>
<name>Ben Fuhrmannek</name>
</author>
<published>2021-08-16T13:47:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=5148ded7268b569fd5e720f90b44645c83ac3e9e'/>
<id>urn:sha1:5148ded7268b569fd5e720f90b44645c83ac3e9e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>prevent STDERR debug output based on SP_NODEBUG environment variable</title>
<updated>2021-08-07T13:55:48Z</updated>
<author>
<name>Ben Fuhrmannek</name>
</author>
<published>2021-08-07T13:55:48Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=e8bb162220ac17cb9b8cc229666356e88f081887'/>
<id>urn:sha1:e8bb162220ac17cb9b8cc229666356e88f081887</id>
<content type='text'>
</content>
</entry>
<entry>
<title>restructured function hooks, implemented unhook</title>
<updated>2021-08-06T18:17:38Z</updated>
<author>
<name>Ben Fuhrmannek</name>
</author>
<published>2021-08-06T18:17:38Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=260f17f112e2d081783c6dc102f81666ac2435d9'/>
<id>urn:sha1:260f17f112e2d081783c6dc102f81666ac2435d9</id>
<content type='text'>
</content>
</entry>
</feed>
