summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strdup.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2006-05-15Try harder to trigger an exception. On architectures where floating-pointkettenis1-1/+7
exceptions are deferred, we might not see the exception before another floating-point instruction is executed. This is especially true on the i387 where we don't see underflow/overflow until the result is stored into memory.
2006-05-14Fix the second malloc_ulimit regression: maintaining the free listotto1-3/+12
requires memory; try to make sure we have it. If all fails, leak instead of crash. Test case originally found by cloder@, fix tested by many.
2006-05-14Add a -hex option to 'rand' to output hexadecimal output.matthieu2-2/+24
ok djm@ miod@, man page help from jmc@.
2006-05-12remove an 'is' from the comment to make the sentence correct.fkr1-2/+2
ok jmc@, mbalmer@
2006-05-05Convert do {} while loop -> while {} for clarity. No binary changemillert2-10/+10
on most architectures. From Oliver Smith. OK deraadt@ and henning@
2006-05-04backport checks for degenerate Diffie-Hellman public exponents fromdjm9-1/+73
OpenSSL-0.9.8a, where they were added without a corresponding patch to 0.9.7 or an advisory! ok theo@ markus@
2006-04-25strtonum does not require limits.htedu1-2/+1
spotted by ray some time ago
2006-04-24Do not leave an hole in the directory list if allocation of theotto1-11/+32
region succeeds, but allocation a required page dir failed. This can happen if we're really close to ulimit after allocation the region of the size requested. See malloc_ulimit1 regress test. Tested by many; thanks.
2006-04-18Hook new ulimit test casesotto1-2/+2
2006-04-18near ulimit test case 2otto2-0/+46
2006-04-18Near ulimit test case 1otto2-0/+48
2006-04-18delint; original from deraadt@ with fixes from tdeval@ and me;otto1-43/+60
tested by quite a few developers. ok deraadt@
2006-04-18Clarify strlcpy code by explicitly naming variable `len' andray1-5/+6
separating out each step. Inspired during miscommunication with tedu@. OK deraadt@
2006-04-17fix badly broken code. okay millert@, deraadt@espie1-7/+7
2006-04-14Remove str2number(), use strtonum(3) instead.ray1-44/+20
Fix some type mismatches. Replace magic numbers. Remove superfluous strlen(3) calls. Earlier diff OK kjell@, OK deraadt@
2006-04-04POSIX says tdelete() returns the parent of the deleted node. Sadly theotto1-1/+9
root node doesn't have a parent, and POSIX does not say what should be done in that case. Warn developers that different implementations may do different things.
2006-04-04When tdelete() is used to delete the root node, don't return amoritz2-3/+5
pointer to the freed root node, but return a pointer to the new root node. POSIX does not define, what should be returned in that case. Fixes Coverity CID 2528. ok millert@ otto@
2006-04-03be more careful with atoi() result; ok ottoderaadt1-3/+5
2006-04-02Use SIZE_MAX instead of SIZE_T_MAX, the latter is not POSIX andotto2-4/+4
remove redundant check on size. ok millert@ deraadt@
2006-04-01Use NFILES for starting point instead of hardcoded constotto1-2/+2
2006-03-31(char)to{upper,lower}()deraadt2-6/+6
2006-03-31oldmask = sigprocmask(SIG_BLOCK, &mask, &oldmask);deraadt1-1/+1
is not valid code; found by lint
2006-03-29Xr to strtonum(3), because vice versa is already the casegrunk1-1/+2
ok jmc@ otto@
2006-03-26Add warning about malloc(num * size) and recommend calloc() instead,ray1-5/+40
or if malloc must be used suggest check. Get rid of "one". OK deraadt@ and jmc@, OK kjell@ to earlier version with "one"s.
2006-03-25hook telldirotto1-2/+2
2006-03-25telldir/seekdir regress tesst. Fails on -current, since seekdir(x),otto2-0/+111
telldir() does not return x. This will we fixed.
2006-03-22Pass size of correct variable to memset().ray1-2/+2
From Alexey Dobriyan. OK otto@
2006-03-15Removes extraneous variables from getopt(3). Inspired by one ofray1-3/+1
David Hill's diffs. ok otto
2006-03-14make BN_is_prime() realise that 2 is, in fact, a prime number.djm2-2/+6
from OpenSSL CVS; ok otto@ deraadt@
2006-03-10Hook up getcap test.ray1-2/+2
2006-03-10Regression test for truncated file.ray3-0/+37
ok otto and millert
2006-02-22Avouid a race in atexit() handling by introducing a lock. Problemotto2-10/+32
originally reported by Gergely Kovacs; help from dhartmei@; ok tedu@ millert@
2006-02-14quick path for free(0)espie1-5/+5
`looks to be safe' millert, okay tedu.
2006-02-11type correctness; from Ray Lai in PR 5011; ok millert@otto1-2/+2
2006-02-01remove obsolete code; from Ray Lai in PR 4998; ok tedu@ beck@otto1-8/+1
2006-01-31use "proxy_protocol" as the arg to -X, not "proxy_version";jmc1-2/+2
from ray lai;
2006-01-30document posixness;jmc2-9/+7
fixes pr #4996, from joachim schipper;
2006-01-25implement HTTP proxy authentication support, very useful in a ssh_configdjm3-23/+95
ProxyCommand; ok beck@
2006-01-20Explicitly include limits.h if we are going to use its contents.millert1-1/+2
2006-01-18missing auxillary verbjakemsr1-2/+2
"yes, that is correct." jmc@ (a while back)
2006-01-17Include limits.h directly instead of depending on another headermillert2-2/+4
to include it for us.
2006-01-17Include <sys/param.h> instead of <sys/types.h> so we get MAXHOSTNAMELENmillert1-2/+2
2006-01-15back out previous - imaxabs is already listed;jmc1-2/+1
2006-01-14Xr imaxabs()millert1-1/+2
2006-01-14fix the .Fn line; ok millertjmc1-2/+2
2006-01-14sort SEE ALSO;jmc1-2/+2
2006-01-13Add lldiv(), imaxabs(), imaxdiv(), strtoimax() and strtoumax()millert17-74/+685
2006-01-10Return inf or nan as per printf() not Inf, Infinity or Nan (from dtoa)millert2-11/+15
Remove an extraneous check for dtoa returning Inf/Nan
2006-01-10Use localeconv() to get the locale-specific radix char like printf does.millert1-3/+6
2006-01-10Nan and Infinity can be negativemillert1-6/+12
Decimal point was missing for some exponential output Only divide sign by 10 once per loop Add a missing NUL terminator for one case If there is no whole number portion, print a leading zero (e.g. 0.1 not .1)