summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Reserve a range of USERERR values for HTTPDsf2012-02-041-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1240474 13f79535-47bb-0310-9956-ffa450edef68
* Revert r817809 on 1.5.x branch.bojan2012-01-312-40/+13
| | | | | | Makes hash table data unavailabe in pool cleanups registered with the pool. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1238132 13f79535-47bb-0310-9956-ffa450edef68
* Backport r1236970, r1237078 and r1237507 from trunk.bojan2012-01-302-10/+102
| | | | | | Randomise hashes by providing a seed (initial hash value). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1237546 13f79535-47bb-0310-9956-ffa450edef68
* Fix cut'n'paste errorsf2011-11-191-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1204011 13f79535-47bb-0310-9956-ffa450edef68
* Clean up references to rng struct when pool isrjung2011-11-081-0/+18
| | | | | | | | | destroyed. Backport of r1198921 from trunk. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1199083 13f79535-47bb-0310-9956-ffa450edef68
* Clarify what happens to the proc structure used by apr_fork(). rjung2011-11-082-7/+8
| | | | | | | | | | | Set the proc->pid field to the pid of the newly created child. Note that a mere pid value provides little entropy to mix into the child random pool. Backport of r1198860 from trunk. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1199082 13f79535-47bb-0310-9956-ffa450edef68
* Fix test case for child randomness.rjung2011-11-081-41/+97
| | | | | | | Backport of r1198923 from trunk. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1199080 13f79535-47bb-0310-9956-ffa450edef68
* BZ 50334: Change back fix for APR_RESTORE_THE_ENVIRONMENTrjung2011-11-081-2/+6
| | | | | | | | | | | | | | | | | to sed use, because ${A#B} is not available in all shells, especially not in /bin/sh on Solaris. The original problem of only whitespace in the saved variable is fixed by a better test condition. The additional possible problem of sed or regexp meta characters in the variable value is still open but yet has to be observed in the wild. Backport of r1199072 from trunk. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1199076 13f79535-47bb-0310-9956-ffa450edef68
* fix typosf2011-11-041-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1197394 13f79535-47bb-0310-9956-ffa450edef68
* Backport r1183698:sf2011-10-151-9/+19
| | | | | | | | | Avoid fcntl() calls if support for O_CLOEXEC works. PR: 48557 Submitted by: Mike Frysinger <vapier gentoo org> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1183730 13f79535-47bb-0310-9956-ffa450edef68
* backport r979891:sf2011-10-1510-25/+20
| | | | | | | | | | | | | | Fix various issues found by cppcheck - error handling issues - use of uninitialized data - null pointer dereference - unused variables - memory/fd leaks - broken code in threadproc/beos/proc.c git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1183724 13f79535-47bb-0310-9956-ffa450edef68
* Backport r1183693:sf2011-10-155-0/+30
| | | | | | | | | | Add support for APR_SO_BROADCAST PR: 46389 Submitted by: Armin Müller <mueller itestra com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1183717 13f79535-47bb-0310-9956-ffa450edef68
* Backport r1183688:sf2011-10-153-10/+25
| | | | | | | | | | | | Fix race condition that could lead to EEXIST being returned PR: 51254 Submitted by: William Lee <william lee rainstor com>, Wim Lewis <wiml omnigroup com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1183713 13f79535-47bb-0310-9956-ffa450edef68
* Backport r1183686:sf2011-10-151-1/+1
| | | | | | | | | | | | | Fix APR_RESTORE_THE_ENVIRONMENT if the original variable was a single space Autoconf selects a POSIX shell for us, so we can get rid of sed, here. PR 50334 Submitted by: Nathan Phillip Brink <binki gentoo org> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1183710 13f79535-47bb-0310-9956-ffa450edef68
* Backport r1183685:sf2011-10-151-3/+6
| | | | | | | | | | | | Don't close any of the new stdin/stdout/stderr FDs in the child if it already has the correct FD. PR: 51995 Submitted by: Dan Ports <drkp csail mit edu>] git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1183706 13f79535-47bb-0310-9956-ffa450edef68
* Backport r1183683:sf2011-10-151-2/+4
| | | | | | | | Clarify that it is save to call apr_initialize several times. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1183701 13f79535-47bb-0310-9956-ffa450edef68
* Backport r1172825:sf2011-09-191-6/+6
| | | | | | | | | | | Fix issue found by PVS-Studio static analyzer: Correctly clear whole sha256 state PR: 51542 Submitted by: Andrey Karpov <karpov viva64 com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1172828 13f79535-47bb-0310-9956-ffa450edef68
* darwin-10/darwin-11jim2011-08-011-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1152851 13f79535-47bb-0310-9956-ffa450edef68
* Also for OSX 10.7jim2011-08-011-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1152846 13f79535-47bb-0310-9956-ffa450edef68
* Fix flag character '#' in combination with formatrjung2011-07-291-2/+2
| | | | | | | character 'x' in apr snprintf implementations. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1152310 13f79535-47bb-0310-9956-ffa450edef68
* Backport r1130270, r1130274:sf2011-06-011-1/+6
| | | | | | | Fix crash with --enable-allocator-uses-mmap on machines with pagesize >= 8k. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1130276 13f79535-47bb-0310-9956-ffa450edef68
* Yearly config.(guess|sub) update.rjung2011-05-202-143/+187
| | | | | | | | | Detects more platforms, like AIX 7, Android etc. Source taken from http://git.savannah.gnu.org/cgit/config.git/tree/ git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1125546 13f79535-47bb-0310-9956-ffa450edef68
* Fix nasty comment typo.rjung2011-05-201-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1125529 13f79535-47bb-0310-9956-ffa450edef68
* Fix extraclean make target:rjung2011-05-201-1/+4
| | | | | | | also remove libtool2 files. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1125523 13f79535-47bb-0310-9956-ffa450edef68
* Add forgotten argz.m4 to libtool m4 cleanup.rjung2011-05-201-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1125508 13f79535-47bb-0310-9956-ffa450edef68
* Use buildconf script from trunk, works fine.rjung2011-05-201-14/+35
| | | | | | | | | | | | | | | | Changes: - fixed indentation - Correct and add a few comments - Remove "$verbose" from libtool 1 call (it doesn't implement it) - Reduce code duplication - Remove "force" form libtoolize in order to not overwrite config.(guess|sub). All possibly conflicting old files get removed by buildconf before calling libtoolize. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1125485 13f79535-47bb-0310-9956-ffa450edef68
* Remove dublicate call to AC_CONFIG_MACRO_DIR().rjung2011-05-201-1/+0
| | | | | | | | At the time of merge from trunk the line was already added by another commit. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1125481 13f79535-47bb-0310-9956-ffa450edef68
* Silence autoconf 2.68 warnings.rjung2011-05-201-6/+8
| | | | | | | | | | Add AC_LANG_SOURCE to AC_COMPILE_IFELSE in apr_common.m4. Backport of r1125472 from trunk. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1125473 13f79535-47bb-0310-9956-ffa450edef68
* rpm spec file: BuildPrereq is deprecated, use BuildRequires instead.minfrin2011-05-201-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1125419 13f79535-47bb-0310-9956-ffa450edef68
* Document another unexpected failure, already resolvedwrowe2011-05-191-0/+1
| | | | | | Backports: r1124983 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1125000 13f79535-47bb-0310-9956-ffa450edef68
* Fix t ~= [/-/t] mismatch, observed by jorton.wrowe2011-05-191-1/+1
| | | | | | Backports: r1124997 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1124998 13f79535-47bb-0310-9956-ffa450edef68
* Fix PR 51219, /foo against /foo/bar.wrowe2011-05-181-3/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1124327 13f79535-47bb-0310-9956-ffa450edef68
* Add more pattern tests involving slashes.wrowe2011-05-181-1/+11
| | | | | | Backports: r1124322 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1124323 13f79535-47bb-0310-9956-ffa450edef68
* Backport legibility enhancement from r1103115 (an illegible patch, wrowe2011-05-181-5/+5
| | | | | | in its own right, due to an svn:eol-style mess on svn cp). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1124317 13f79535-47bb-0310-9956-ffa450edef68
* Sync fnmatch pattern tests to apr-2.0 trunk at r1104503.wrowe2011-05-171-0/+169
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1104504 13f79535-47bb-0310-9956-ffa450edef68
* Further expression simplification for legibility.wrowe2011-05-141-9/+16
| | | | | | | Backport: r1103091 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1103092 13f79535-47bb-0310-9956-ffa450edef68
* Fix another edge case, in [x-/] processing, which I can't seem wrowe2011-05-141-7/+14
| | | | | | | | | | | | | | to compose the proper test-case to expose. Refactor a complex test into a very simple test and optimize the exception cases to bust the loop early. Clean up documentation a bit. Backports: r1103041, r1103046 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1103049 13f79535-47bb-0310-9956-ffa450edef68
* Fix []...] pattern bug noted by jortonwrowe2011-05-141-2/+6
| | | | | | | | | Optimize []...] pattern case Backport: r1102992, r1102995 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1102996 13f79535-47bb-0310-9956-ffa450edef68
* revert part of r1084310 (from 892177), which inadvertently enabledtrawick2011-05-121-1/+0
| | | | | | | Win32 handle debugging for this file by including apr_dbg_win32_handles.h git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1102150 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1101301 from 1.4.x branch.bojan2011-05-101-1/+1
| | | | | | Fix top_builddir in installed apr_rules.mk. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1101302 13f79535-47bb-0310-9956-ffa450edef68
* Correct inlining per Jeff Trawick's feedback; Forward ports: r1098902wrowe2011-05-031-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1098903 13f79535-47bb-0310-9956-ffa450edef68
* Resolve issue identified by Jeff Trawick; '*?' was handledwrowe2011-05-021-2/+3
| | | | | | | | | | correctly, while 'x?' was not. Resolves one alert, assignment within conditional expression, for pedantic compilers. Forward ports: r1098799 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1098804 13f79535-47bb-0310-9956-ffa450edef68
* from trunk r1098596:trawick2011-05-021-0/+1
| | | | | | | | | document return values for apr_os_thread_equal() Submitted by: Stefan Ruppert <sr myarm.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1098599 13f79535-47bb-0310-9956-ffa450edef68
* Security: CVE-2011-0419wrowe2011-05-011-211/+377
| | | | | | | | | | | | | | | | | Reported by: Maksymilian Arciemowicz <cxib securityreason.com> Excessive CPU consumption was possible due to the unconstrained, recursive invocation of apr_fnmatch, as apr_fnmatch processed '*' wildcards. Introduce new apr_fnmatch implementation. This delivers optimizations in some common cases, without the underlying weakness of recursion present in older implementations. Submitted by: William Rowe Forward port from r1098289 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1098290 13f79535-47bb-0310-9956-ffa450edef68
* From trunk:trawick2011-04-293-4/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. r1089433 poll, pollset, pollcb on Windows: Handle calls with no file/socket descriptors. PR: 49882 Patch for one situation submitted by: Stefan Ruppert <sr myarm.com> Extended by: trawick 2. r1089528 fix variable initialization bug in r1089433 3. r987639 disable entire impl_pollcb_create() function if APR_HAS_THREADS instead of just inserting a return at the top 4. tiny part of r899905 move decl of loop control variables to the block where used git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1097783 13f79535-47bb-0310-9956-ffa450edef68
* NetWare test makefile fixes.fuankg2011-04-178-51/+32
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1094203 13f79535-47bb-0310-9956-ffa450edef68
* Fix VC10 release build running on Windows7/Server 2008 wrowe2011-04-141-21/+26
| | | | | | | Submitted by: Steve Hay <SteveHay planit.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1092025 13f79535-47bb-0310-9956-ffa450edef68
* sync with apr.h.in re: APR_HAVE_SA_STORAGEtrawick2011-04-131-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1091858 13f79535-47bb-0310-9956-ffa450edef68
* grab 1091757 from trunk:trawick2011-04-132-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IPV6_V6ONLY on Windows: * Deal with SDKs which don't have the symbol definition * Deal with old run-time platforms which don't implement the option and have hard-coded behavior internally (option always on) Behavior changes: run on Windows >= Vista, SDK has IPV6_V6ONLY: no change in behavior run on Windows >= Vista, SDK doesn't have IPV6_V6ONLY: works just like SDK had the def'n (will return APR_SUCCESS on IPv6 socket instead of WSAENOPROTOOPT) run on Windows < Vista, regardless of SDK: socket_opt_get/set(APR_IPV6_V6ONLY) reflect stack behavior (always on) previously, if IPV6_V6ONLY was defined: set returned WSAENOPROTOOPT previously, if IPV6_V6ONLY was not defined: set returned APR_ENOTIMPL previously, regardless of IPV6_V6ONLY presence: get returned not-enabled now: get always returns enabled; set returns APR_SUCCESS when enabling, APR_ENOTIMPL when trying to disable PR: 45321 Submitted by: Sob <sob hisoftware.cz> Tweaked by: trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1091824 13f79535-47bb-0310-9956-ffa450edef68
* grab r1091498 from trunk:trawick2011-04-121-0/+4
| | | | | | | | | | for MinGW, hard-code the results of various IPv6 tests instead of butchering them enough to work with Winsock. Use --disable-ipv6 if not desired, or running on ancient machine. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1091510 13f79535-47bb-0310-9956-ffa450edef68