| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1683221 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
is a little quieter
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1534882 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
character 'x' in apr snprintf implementations.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1152309 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1060659 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
int64 (and APR_INT64_T_FMT).
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1060104 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@660373 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Caldera International Inc.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@652832 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Spotted by: Sebastian Gottschalk <seppig_relay gmx.de>
Reviewed by: rpluem
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@630528 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
types.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@554692 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
wide_int apr_int32_t
u_wide_int apr_uint32_t
widest_int apr_int64_t
u_widest_int apr_uint64_t
bool_int int
Passes testfmt.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@553679 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
human readable form. Based upon apr_strfsize.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@551923 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
ugly casts.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@551922 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
using APR_SIZEOF_VOIDP.
PR: 40758
Submitted by: Davi Arnaut <davi@haxent.com.br>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@543274 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
integers between 2^63 and 2^64 on 32-bit platforms.
* test/testfmt.c (more_int64_fmts): Test an even bigger unsigned
int64.
Submitted by: Wynn Wilkes <wynn bungeelabs.com>
PR: 42250
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@532733 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
returning number of bytes *without* NUL in overflow case.
* test/teststr.c (snprintf_overflow): New test case.
PR: 39996
Submitted by: Michal Luczaj <regenrecht o2.pl>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@420858 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Avoid strict-aliasing warnings with gcc 4.1.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@380106 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
the declaration of apr_gcvt() - an exported function, is much
dicier.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@368548 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that the vformatter code will not palloc.
* include/apr_network_io.h (apr_sockaddr_ip_getbuf): Declare new
function.
* network_io/unix/sockaddr.c (apr_sockaddr_ip_getbuf): Rewrite of
apr_sockaddr_ip_get, taking a buffer argument.
(apr_sockaddr_ip_get): Reimplement using apr_sockaddr_ip_getbuf.
* strings/apr_snprintf.c (conv_apr_sockaddr): Use
apr_sockaddr_ip_getbuf to avoid use of pool.
* test/testsock.c (test_print_addr): New test case.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@279566 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
is -ever- signed, we pull out -width as a flag, and prec is folded +.
Changing the code only required special handling of %*.* variables,
continuing to read them as int, and preserving the folding of negative
values that's already there.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@267459 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
print the error string corresponding to an apr_status_t.
* test/testfmt.c (error_fmt): New test.
* include/apr_lib.h: Document %pm and note the versioning constraint.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@233381 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
in hex format.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@191138 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
quantums - to match the size of memory. Prevents many many ugly casts.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@170470 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
numbers.
PR: 29621
Submitted by: Artur Zaprzala <zybi talex.pl>
Reviewed by: Jeff Trawick
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65222 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
smaller than LONG_MIN.
* test/testfmt.c (more_int64_fmts): Add regression test.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65037 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove definitions of APR_INT64_T_FMT_LEN, APR_UINT64_T_FMT_LEN and
APR_UINT64_T_HEX_FMT_LEN. Die at configure-time if a 64-bit integer
type is not found rather than placing "#error"s in apr.h.
* strings/apr_snprintf.c (apr_vformatter): Rework to use sizeof()
rather than APR_INT64_T_FMT_LEN. One (intensional) functional change,
for the sizeof(int) == 8 case: previously the first if condition would
always be true since strncmp(a, b, 0) == 0; now the condition will
always be false.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64675 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
the false format item
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64545 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
(from a series of suggestions on #apr)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64485 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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64136 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
of precision causing a buffer to be clobbered in the vformatter
function (eg: apr_snprintf)
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64132 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63835 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63834 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
work no matter what buf is (NULL or not).
PR:
Obtained from:
Submitted by:
Reviewed by: rbb
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63832 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
length that the string would be if we actually were going to fill it out.
However, if the length argument is 0, we can also accept a NULL string.
Also, added a test case for this.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63829 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
specified for the string, and the string being printed doesn't have a
trailing '\0'. Fix that seg fault by not calling strlen if a precision
is specified when printing a string. Also add a test to the test suite
for this case.
PR: 8554
Submitted by: R Samuel Klatchko <rsk@brightmail.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63828 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
|
|
|
|
|
|
|
| |
string.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63369 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
apr_vformatter()
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63368 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
struct sockaddr* as much as possible)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63137 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
Obtained from:
Submitted by: Joshua Colvin <joshua@jammed.com>
Reviewed by: Martin Kraemer, Jim Jagielski
Bring up fix from 1.3 patch
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63121 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
products may identify the va_args from apr_Xsprintf() calls as living
on another fn's stack [true] and toss up memory violations [not true.]
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62948 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
a decent style. Sorry. No functional changes.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62914 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
No functional changes.
(This file is a stylistic nightmare to read. We're seeing an OS/X stack
smash with SVN. We need a reformat so we can understand it.)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62913 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
if we are going to bury -1 flags (I'd prefer the flag cast to apr_size_t
and use that value throughout the hash api, however.)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61649 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
APR_INT64_T_FMT string regardless (e.g. older lld or win32 I64d).
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61584 13f79535-47bb-0310-9956-ffa450edef68
|