summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/labs.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-04-22So it turns out that libcrypto on i386 platforms, unconditionaly compiles thismiod2-78/+0
little gem called OPENSSL_indirect_call(), supposedly to be ``handy under Win32''. In my view, this is a free-win ROP entry point. Why try and return to libc when you can return to libcrypto with an easy to use interface? Better not give that much attack surface, and remove this undocumented entry point. ok beck@ tedu@
2014-04-22When compiling with AES_WRAP_TEST, make main() return a meaningful valuemiod4-3/+44
instead of garbage, and add this to the libcrypto regress. Note these tests are incomplete, as they always use the default IV.
2014-04-22Remove the certs directory that contains ancient files not usedlteo6-171/+0
by anything. "yes, blow it away" beck@
2014-04-22null a pointer to prevent double free. from Dirk Englingtedu2-0/+2
2014-04-22Remove files which look like actual code compiled in libcrypto, but isn't.miod4-340/+0
One even says (in comments): HAS BUGS! DON'T USE
2014-04-22fix memory leaks. from Dirk Englingtedu6-42/+24
2014-04-22Remove meat which either duplicates code found in apps/, or is only of valuemiod40-8459/+0
for 20th century historians, and can be put in the Attic.
2014-04-22- one more mallocarray -> reallocarrayjmc1-3/+3
- use <>
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