| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
https://git.savannah.gnu.org/cgit/config.git.
Backport of r1820186 from trunk
resp. r1820187 from 1.7.x
resp. r1820188 from 1.6.x.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1820189 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
Backport of r1820080 from trunk
resp. r1820081 from 1.7.x
resp. r1820082 from 1.6.x
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1820083 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
http://git.savannah.gnu.org/cgit/config.git.
Backport of r1809649 from trunk resp.
r1809650 from 1.7.x resp. r1809651 from 1.6.x.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1809652 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
http://git.savannah.gnu.org/cgit/config.git.
Backport of r1791598 from trunk resp. r1791599
from 1.6.x.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1791600 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1789564 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1778147 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
http://git.savannah.gnu.org/cgit/config.git.
Backport of r1776998 from trunk resp.
1776999 from 1.6.x.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1777000 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Backport of r1776994 from trunk resp.
r1776995 from 1.6.x.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1776996 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
proc_mutex_pthread: simplify (shorten) methods' names by removing
the second/double proc_ (consistently with other mechanisms).
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1775071 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1762329 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
clear the aiocb structure used for asyncio cancel
The underlying syscall sanity checks some fields we don't later specify,
possibly even some fields that are n/a for a cancel operation,
which may result in a cancel call failing.
outstanding aysnc I/O requests are cancelled when the fd is closed,
but with very long-lived sockets, failing cancels could result
in elevated CPU during BP4XAIO of type select or cancel.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1759011 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
poll() implementation of apr_pollset_poll(): Return APR_EINTR as appropriate.
(APR_SUCCESS was returned instead in that scenario.)
[Note backport: the below is a partial revert only]
Revert r1671389; apr_pollset_poll() should return APR_SUCCESS
and the real event if a real event occurs AND apr_pollset_wakeup()
is called before apr_pollset_poll() is called and/or awakened.
apr_pollset_poll(): don't return a positive (nay negative in case of error)
number of descriptors/events, before the returned descriptors are actually
initialized.
Submitted by: trawick, ylavic
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1755769 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
Minor fixes to quiet valgrind warnings
Submitted by: sf
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1755767 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
apr_pollset_poll(): OS/2: follow up to r1755740.
The UNIX socket is SOCK_DGRAM, so draining the pipe is another read()..
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1755748 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
OS/2: Implement apr_pollset_wakeup() using a unix domain socket.
Also adds stubs for apr_poll_method_defname() and apr_pollset_method_name().
OS/2: Protect against NULL dereference if apr_pollset_wakeup() is called for a
non-wakeable pollset.
apr_pollset_poll(): OS/2: follow up to r923311.
Don't return APR_EINTR (woken up) unless we actually read something on the
wakeup pipe (which we must drain), and also return APR_SUCCESS if at least
some other event is available simultaneously.
Submitted by: bjh, ylavic
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1755743 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix a case where the cleanup for a pollset w/o the thread-safe flag
would try to zap a random/garbage message queue identifier. In httpd,
this could happen with e.g. mod_cgi's short-lived, non-threadsafe
pollset.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1750377 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
comparison); Clarify expression with parentheses.
PR59582
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1744604 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Includes some fixes to unix proc_mutexes contained in the above commit (including
follow up to r1738800), but without non-backportable (API) changes.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1738819 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
apr_proc_mutex-pthread: Refcount shared mutexes usage to avoid
destruction while still is use by some process(es).
PR 49504.
apr_proc_mutex-pthread: follow up to r1733694.
Simplify #if/#else/#endif logic, no functional change.
Note: this merge additionnaly fixes the munmap()ing size of the
pthread_interproc mutex to match the mmap()ed one, which was done in
trunk by r1733775 (barely related and backported later), hence the
additional change for *this* bugfix to be self contained.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1738800 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1736554 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
http://git.savannah.gnu.org/cgit/config.git.
Backport of r1722557 from trunk
resp. r1722558 from 1.6.x.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1722559 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Backport of r1722547 from trunk
resp. r1722549 from 1.6.x.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1722550 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1710309 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
modest apr.h improvements for Windows, from various trunk commits
* Ignore certain warnings with MSVC.
* Align whitespace and improve some comments
* Conditionally include additional header files as on Unix (none of these
will be included without modifying defines)
(The APR_HAVE_SOCKADDR_UN change to apr.hwc is not appropriate for this
branch.)
PR: this is tiny help for 58476
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1707717 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1702075 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
out-of-tree. This deserves a non-lethal alert if .h.in results are picked up.
Backports: r1702061
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1702062 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix comments for fcntl lock
apr_file_lock() should lock the whole file. The code uses SEEK_SET which
means 'start of file' and is correct, but the comments describe the SEEK_CUR
behavior.
Fix comments.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1696770 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Merge r1696140 from trunk:
fix comparison of sin6_addr
One cannot assume that sin6_addr is located at the start of sa_data.
For example, glibc puts sin6_flowinfo there.
Fix by casting to the proper type first.
Reported by Andre Naujoks <nautsch2 gmail com> via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759534
------------------------------------------------------------------------
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1696146 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1687637 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1687620 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
apr_filepath_merge: Fix truename length calculation on Windows
in cases where the "short" name variant is actually longer than
the "long" or "true" name.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1685988 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1683223 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1676751 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
might not be able to link without rpcrt4.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1676647 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1676022 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1676020 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1676016 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SECURITY: CVE-2015-1829 (cve.mitre.org)
APR applications using APR named pipe support on Windows can be
vulnerable to a pipe squatting attack from a local process; the extent
of the vulnerability, when present, depends on the application.
Initial analysis and report was provided by John Hernandez of Casaba
Security via HP SSRT Security Alert.
Submitted by: ylavic
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1676015 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
My fault surely
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1675754 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix errors when building on Visual Studio 2013 while
maintaining the ability to build on Visual Studio 6 with
Windows Server 2003 R2 SDK.
PR: 57191
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1675752 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1675694 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Switch to generic atomics for (unpatched) Solaris 10 not exporting some atomic
functions. PR 55418.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1675670 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
testatomic: silence Sun compiler warning.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1675662 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
testskiplist: silence Sun compiler warning.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1675651 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1675573 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
skiplist: avoid (undefined) unsigned to signed conversion and save cycles in
the hot path get_b_rand().
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1672577 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
testskiplist: axe buggy compare function acomp() and associated test.
Instead, define and use ecomp() which bases uniqueness on both elem's a and b,
and test it with multiple duplicates inserted/found/removed in arbitray order.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1672500 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
skiplist: fix the minimum height (to one).
The height of a skiplist is always at least one, for the top node,
even if our implementation may delay its creation on the first insert
or delete it on the last remove (for optimization purpose).
This also helps apr_skiplist_remove() to never return zero (not found)
when it deletes the last node.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1672384 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
skiplist: follow up to r1664769.
Fix insert_compare() returning NULL on the very first insertion (top is NULL).
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1672362 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Test the scenario where apr_pollset_poll() is called after a
real event occurs AND apr_pollset_wakeup() has been called.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1671963 13f79535-47bb-0310-9956-ffa450edef68
|