| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
PR: 41063
Backports: 488084, 585357
Submitted by: Peter Steiner <peter.steiner+apache hugwi.ch>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@585356 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@448246 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
Original log message:
* memory/unix/apr_pools.c (pool_clear_debug): Scribble over blocks
with a poison byte before freeing them to help highlight
use-after-free bugs.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@372609 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@151409 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@105962 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64903 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
APR global pool allows it to allocate memory and set cleanups that will never happen even if the application terminates.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64826 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Submitted by: Joe Orton
Reviewed by: Greg Stein, Cliff Woolley, Sander Striker
* memory/unix/apr_pools.c
(list_insert, list_remove): new macros to do manipulation of lists
throughout the pools code.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64702 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64660 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
apr_pools.c:561: warning: implicit declaration of function `apr_atomic_init'
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64659 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(apr_initialize): Remove atomics initialization from this function. Due
to circular dependency, doing it here is too late.
* memory/unix/apr_pools.c
(apr_pool_initialize): Add atomics initialization to the release and debug
versions. This has to happen here, since pools rely on mutexes, which
can be backed by atomics. Atomics initialization requires a pool.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64656 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
(apr_pool_create_ex): Use the correct mutex when adding the pool to
the pools parent child list.
Submitted by: Brad Nicholes, Jean-Jacques Clar <jjclar@novell.com>
Reviewed by: Cliff Woolley, Sander Striker
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64572 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
mechanisms, causing an Apache child process to crash. The crash was first
reported by David Endler <DEndler@iDefense.com> and was researched and fixed by
Joe Orton <jorton@redhat.com>. Details will be released on 30 May 2003.
CVE: CAN-2003-0245
Reported by: David Endler <DEndler@iDefense.com>
Submitted by: Joe Orton <jorton@redhat.com>
Reviewed by: Justin, Jim, Jeff
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64511 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
(apr_pool_check_integrity): Only log when being verbose.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64406 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
availability and lifetime of the hproc process handle.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64388 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
confusing, proc is much more clearly not an actual int pid value.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64386 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
No functional changes
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
cleanup.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64042 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
1. The previous code was missing the last sleep cycle, thus we would wait only half
the time we should have been waiting.
2. We were incorrectly setting the need_timeout flag if pc->kill_how was not
APR_KILL_AFTER_TIMEOUT
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64018 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
to an exponentiallly growing timeout.
PR: 7617
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64016 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63965 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
from the pool userdata, and not being able to retrieve. We could also
separate out when the hash doesn't exist, but I have left that for somebody
else.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63959 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
'active->first_avail + size' might overflow, whereas
'active->endp - active->first_avail' can never underflow.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63894 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
resulted in a ssize_t rather than the size_t we are comparing to. Change
to addition and all is well.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63887 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Submitted by: Blair Zajac <blair@orcaware.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63806 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
wrists by the style police.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63655 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fit in by flushing if the final character was at the exact end of the buffer
it was using. Take care of the case that the fixup was handling in apr_psprintf,
by ensuring we can fit a NUL byte from the beginning. Implement this by
calling flush if we start with a 0 byte buffer (in which nothing can fit
anyway).
Secondly make sure that the flush function never tries to use a block
that has less than APR_PSPRINTF_MIN_STRINGSIZE bytes to spare.
Thanks to Nuutti Kotivuori <naked@iki.fi> for pointing out the problem, digging
around for answers and providing patches.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63654 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63566 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
number.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63563 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
build flavors
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63498 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
so a non-thread-capable APR can build
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63486 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
Thanks to Garrett for the fix.
Submitted by: Garrett Rooney <rooneg@electricjellyfish.net>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63479 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
renamed without thunks.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63477 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63448 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
find out which allocator is being used by a pool. This is particularly
usefull when you have created a pool with its own allocator, but
don't want to keep a global pointer around to do tricks with its
max free size or its mutexes.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63447 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Issued tickets for tabs and trailing whitespace.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63446 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
Make sure no other code uses the pools mutex while it is invalid.
Tested by: Philip Martin <philip@codematters.co.uk>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63445 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
apr_allocator_set_owner -> apr_allocator_owner_set
apr_allocator_get_owner -> apr_allocator_owner_get
apr_allocator_set_mutex -> apr_allocator_mutex_set
apr_allocator_get_mutex -> apr_allocator_mutex_get
Suggested by: Cliff Woolley
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63444 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Submitted by: Branko Cibej <brane@xbc.nu>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63443 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when it has to allocate a new block from the allocator. If it has
an old block which can hold the allocation it allocates from that
and makes it the active block.
See: <86off8rtmp.fsf@kepler.ch.collab.net> for why we need it.
And: <1022371367.23007.13.camel@mypc1.pacbell.net> for a
benchmark showing it doesn't affect httpd performance.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63436 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
set a maximum on the free blocks in an allocators freelist.
See: <86off8rtmp.fsf@kepler.ch.collab.net> for why we need it.
And: <1022371367.23007.13.camel@mypc1.pacbell.net> for a
benchmark showing it doesn't affect httpd performance.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63435 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
apr_pools.c:584: warning: no previous prototype for `apr_pcalloc'
Normally this prototype would go in the header, but it was explicitly
removed from the header because code built today should not use this
function. Its non-macro implementation only exists for binary backward
compatibility. So as long as we export the symbol correctly, the pre-built
code already knows how to pull it in (because this prototype WAS in the
header when that code was built), so all is well with the world.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63362 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
optimization of fixed-size memset calls
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63357 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
(somehow CVS ignored updating these on the last commit.)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63287 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
srcdir to always be available in a Makefile, so we need to stop adding
this only when we use VPATH.
Change the dependency generation to use .deps instead of appending to
the Makefile. This makes us consistent with the dependency style of
httpd-2.0.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63286 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
the bucket allocator in apr-util
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63209 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Submitted by: Cliff Woolley
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63208 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
apr_allocator_destroy wasn't the one using the invalid lock, it was
apr_allocator_free, which was being called a few lines above my
previous fix.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63157 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63156 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Submitted by: Bill Stoddard
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63155 13f79535-47bb-0310-9956-ffa450edef68
|