<feed xmlns='http://www.w3.org/2005/Atom'>
<title>snuffleupagus/src/sp_tree.c, 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:27:13Z</updated>
<entry>
<title>Reorder calloc(3) arguments</title>
<updated>2024-06-06T14:27:13Z</updated>
<author>
<name>Christian Göttsche</name>
</author>
<published>2024-05-27T19:32:37Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=97836fae360422baf9c62dd0eb0de6e7b2cfab09'/>
<id>urn:sha1:97836fae360422baf9c62dd0eb0de6e7b2cfab09</id>
<content type='text'>
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)))
          |                                                                        ^~~~~
</content>
</entry>
<entry>
<title>Refactor a bit the sp_tree implementation</title>
<updated>2017-12-20T17:28:21Z</updated>
<author>
<name>xXx-caillou-xXx</name>
</author>
<published>2017-12-20T17:28:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=f2a87d34f6469af1715608412fc5454e177d0901'/>
<id>urn:sha1:f2a87d34f6469af1715608412fc5454e177d0901</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Better parsing of the rules</title>
<updated>2017-12-20T17:09:53Z</updated>
<author>
<name>xXx-caillou-xXx</name>
</author>
<published>2017-12-20T17:09:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dustri.org/snuffleupagus/commit/?id=e7f541396715ee2895abcf73044b91ae9b746201'/>
<id>urn:sha1:e7f541396715ee2895abcf73044b91ae9b746201</id>
<content type='text'>
Thanks to this huge commit from @xXx-caillou-xXx, we can now write amazingly flexible rules.</content>
</entry>
</feed>
