summaryrefslogtreecommitdiff
path: root/buckets/apr_brigade.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaces in *.c.Ivan Zhakov2022-11-201-22/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
* apr_brigade: Fix conversion from 'apr_off_t' to 'size_t', possible loss of data.Yann Ylavic2022-06-231-2/+2
| | | | | | | | | * buckets/apr_brigade.c(apr_brigade_split_boundary): "ignore" and "inbytes" vars are size_t and used as such. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902194 13f79535-47bb-0310-9956-ffa450edef68
* Fix pointer arithmetic for 'void *'Mladen Turk2021-12-011-5/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1895464 13f79535-47bb-0310-9956-ffa450edef68
* Remove begin.Graham Leggett2021-10-251-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1894553 13f79535-47bb-0310-9956-ffa450edef68
* apr_brigade_split_boundary: Provide a memmem implementation on platforms thatGraham Leggett2021-10-251-0/+30
| | | | | | | do not have one. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1894551 13f79535-47bb-0310-9956-ffa450edef68
* apr_brigade_split_boundary: Make sure the ignore offset is reset afterGraham Leggett2021-10-211-0/+4
| | | | | | | each sending of a bucket downstream. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1894446 13f79535-47bb-0310-9956-ffa450edef68
* apr_brigade_split_boundary: Use memmem and memcmp for comparison, allowingGraham Leggett2021-10-211-6/+6
| | | | | | | binary boundaries. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1894441 13f79535-47bb-0310-9956-ffa450edef68
* apr_brigade_split_boundary: Rather than shaving one byte fromGraham Leggett2021-10-201-8/+7
| | | | | | | a bucket, ignore the byte instead on the next go-round. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1894423 13f79535-47bb-0310-9956-ffa450edef68
* apr_brigade_split_boundary: Correctly account for the bytes we've written.Graham Leggett2021-10-201-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1894420 13f79535-47bb-0310-9956-ffa450edef68
* apr_brigades: Add apr_brigade_split_boundary(), allowing us to splitGraham Leggett2021-10-191-0/+263
| | | | | | | brigades on boundaries of arbitrary length. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1894380 13f79535-47bb-0310-9956-ffa450edef68
* * buckets/apr_brigade.c (apr_brigade_cleanup): Non-debug builds shouldJoe Orton2020-03-111-3/+11
| | | | | | | | | not check for brigade memory corruption; debug builds should abort rather than fail silently (since all callers ignore the rv) if corruption is detected. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1875098 13f79535-47bb-0310-9956-ffa450edef68
* Make apr_brigade_(v)putstrs more efficient by using apr_brigade_writevStefan Fritsch2012-10-271-4/+17
| | | | | | | instead of apr_brigade_write git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1402903 13f79535-47bb-0310-9956-ffa450edef68
* Fix potential data corruption in apr_brigade_write() and friends ifStefan Fritsch2012-10-271-3/+9
| | | | | | | | | the last bucket of the brigade is a heap bucket that has been split, and there are still references to the next part of the original bucket in use. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1402897 13f79535-47bb-0310-9956-ffa450edef68
* Remove duplicated logic in apr_brigade_puts().Stefan Fritsch2012-10-271-23/+1
| | | | | | | | PR: 53740 Submitted by: Christophe Jaillet <christophe jaillet wanadoo fr> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1402870 13f79535-47bb-0310-9956-ffa450edef68
* apr_brigades: prevent infinite loop on a corrupt brigadeNick Kew2011-05-131-0/+10
| | | | | | | PR 51062 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1102687 13f79535-47bb-0310-9956-ffa450edef68
* SECURITY: CVE-2010-1623 (cve.mitre.org)Jeff Trawick2010-10-011-1/+12
| | | | | | | | | | Fix a denial of service attack against apr_brigade_split_line(). Submitted by: sf Reviewed by: trawick, jorton git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1003491 13f79535-47bb-0310-9956-ffa450edef68
* Add debugging traps for use-after-destroy of a brigade:Joe Orton2010-06-051-2/+18
| | | | | | | | | | | | | | | | * buckets/apr_brigade.c (apr_brigade_cleanup): Check brigade consistency. (apr_brigade_destroy) [APR_BUCKET_DEBUG]: Check brigade consistency before destroying it, and clear b->p, b->bucket_alloc after. * include/apr_buckets.h (APR_BRIGADE_CHECK_CONSISTENCY): assert that b->p and b->bucket_alloc are non-NULL. Suggested by: sf git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@951762 13f79535-47bb-0310-9956-ffa450edef68
* Convert various APU_DECLARE into APR_DECLARE.Bojan Smojver2009-07-161-20/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@794523 13f79535-47bb-0310-9956-ffa450edef68
* * Fix off by one overflow in apr_brigade_vprintf.Ruediger Pluem2009-04-241-3/+0
| | | | | | | | | | | For the gory details see http://mail-archives.apache.org/mod_mbox/apr-dev/200904.mbox/%3c49F21CD2.5020105@collab.net%3e Submitted by: C. Michael Pilato <cmpilato collab.net> Reviewed by: rpluem, trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@768417 13f79535-47bb-0310-9956-ffa450edef68
* Merge APR-Util trunk into APR.Paul Querna2009-03-241-0/+731
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@757704 13f79535-47bb-0310-9956-ffa450edef68