summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/malloc.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-04-22Nuke the last of the windows related defines from the openssl apps.jsing9-66/+0
ok deraadt@
2014-04-22switch to reallocarraytedu2-4/+4
2014-04-22change mallocarray to reallocarray. useful in a few more situations.tedu3-17/+14
malloc can, as always, be emulated via realloc(NULL). ok deraadt
2014-04-22KNF.jsing5-803/+815
2014-04-22More KNF.jsing4-95/+92
2014-04-22More KNF.jsing1-31/+37
2014-04-22More KNF.jsing6-56/+74
2014-04-22More KNF.jsing1-150/+225
2014-04-22More KNF.jsing2-79/+127
2014-04-22gets() is gonelteo1-2/+1
2014-04-21you must have S_ISDIR to playderaadt1-16/+4
2014-04-21KNF.jsing4-478/+498
2014-04-21KNF.jsing14-686/+818
2014-04-21KNF.jsing8-204/+238
2014-04-21use mallocarray(a,b) instead of malloc(a*b)deraadt2-4/+4
2014-04-21more malloc/realloc/calloc cleanups; ok beck kettenisderaadt27-96/+66
2014-04-21KNF.jsing24-2934/+3236
2014-04-21no need for malloc castsderaadt4-4/+4
2014-04-21KNF.jsing6-166/+154
2014-04-21More KNF.jsing8-16/+16
2014-04-21KNF.jsing28-3140/+3224
2014-04-21KNF.jsing8-1116/+1182
2014-04-21KNF.jsing10-1318/+1444
2014-04-21correct man page sectionderaadt1-2/+2
2014-04-21Introducing: void *mallocarray(size_t nmemb, size_t size);deraadt3-10/+36
Like calloc(), except without the cleared-memory gaurantee ok beck guenther, discussed for more than a year...
2014-04-21wrong calloc, see people do carederaadt2-2/+4
2014-04-21KNF.jsing10-3942/+4184
2014-04-21improve realloc/calloc/malloc patterns; ok guentherderaadt32-96/+46
2014-04-21Delete #if 0'd time related functions which are totally expired.deraadt4-148/+0
No point even seeing these when we do the 2038 audit later on...
2014-04-21modernize malloc callderaadt2-2/+2
2014-04-21Replace entire printf-like guts with calls to libc snprintf.deraadt2-1538/+92
funopen(3) is used to interface to BIO descriptors. ok guenther
2014-04-21Bring malloc/calloc/realloc sequences to modern standardderaadt16-54/+38
ok guenther
2014-04-21remove macros wrapping malloc/calloc/free/reallocderaadt1-26/+16
2014-04-21Correctly document the return value of getenv(3)guenther1-6/+8
From Ben Cornett (ben (at) lantern.is)
2014-04-21KNF.jsing16-1096/+912
2014-04-21clean up files we don't needtedu38-2704/+0
2014-04-21fix accidentally deleted deref.beck2-2/+2
2014-04-20ASN1_STRING cleanup - realloc has handled NULL since I had a mulletbeck2-34/+20
and parachute pants - and since it's obvious there is no guarantee the caller doesn't pass in the data area in the argument, use memmove instead of memcpy so overlapping areas are handled correctly. Also, pointers can be usefully printed in hex with %p, in error messaeges rather than the bizzaro stuff that was there using mystical buffer lengths and abuse of strlcpy-converted-blindly-from-strcpy
2014-04-20replace a bunch of pointer-arithmatic-strcpy-converted-blindly-to-strlcpybeck2-14/+14
cruft with an snprintf. "better than what was there" ok guenther@
2014-04-20Eliminate duplicated logic by switching from malloc+snprintf to asprintfguenther2-40/+28
ok beck@
2014-04-20Chop off more SSLv2 tentacles and start fixing and noting y2038 issues.guenther2-22/+36
APIs that pass times as longs will have to change at some point... Bump major on both libcrypto and libssl. ok tedu@
2014-04-20Restore beck's (void)snprintf(): they were reviewed.guenther6-10/+10
2014-04-20Restore beck's rev 1.8: snprintf() was reviewed.guenther2-4/+4
2014-04-20Restore tedu's rev 1.4: snprintf() was reviewed.guenther2-2/+2
2014-04-20Restore beck's rev 1.7: snprintf() was reviewed.guenther2-4/+8
Also, use sizeof() for snprintf()'s size argument
2014-04-20Remove unused/never installed libssl tools and docs and references to themafresh120-1267/+17
Sure deraadt
2014-04-20Restore beck's rev 1.21: snprintf() was reviewedguenther2-2/+2
2014-04-20theo found a file we don't seem to need, but just in case, i will pastetedu2-6/+0
the contents below: #!/usr/local/bin/perl # x86 assember
2014-04-20Restore beck's rev 1.9: snprintf() was reviewedguenther2-2/+2
2014-04-20KNF.jsing10-476/+610