summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-12-02Add strnlen to SUBDIRS so we actually run its tests.millert1-2/+2
2014-12-02add some openbsd tags, and a first pass at cleanup;jmc166-210/+708
2014-12-02macro cleanup; kaspars at bankovskis dot netschwarze2-49/+55
2014-11-30Replace all 14 instances of .St -ansiC-99 in our tree with .St -isoC-99.schwarze11-33/+33
The former is not used anywhere in NetBSD, FreeBSD, or DragonFly and not supported by groff, so i'm going to delete it from mandoc(1). We don't need two macros for the same thing.
2014-11-30obvious STANDARDS updateschwarze2-14/+10
2014-11-30restructure libc/string + libc/arch/*/string coperation regardingderaadt8-155/+309
(potentially) MD versions (function dependent, not filename dependent) split out memcpy/memmove/bcopy and strchr/index/strrchr/rindex Bring back amd64 .S versions And the final touch: switch all architectures temporarily to MI memcpy.c, which contains syslog + abort for overlapping copies. A nice harsh undefined behaviour. We will clean the entire userland of the remaining issues in this catagory, then switch to the optimised memcpy which skips the memmove check. I tried to cut this change into pieces, but testing each sub-step on every architecture is too time consuming and mindnumbing. ok miod
2014-11-30Remove non-portable use of .Pf that doesn't work with groff;schwarze2-16/+8
found because the groff_mdoc(7) macros warn about it.
2014-11-27Ensure that sess_cert is not NULL at the start ofjsing2-50/+18
ssl3_send_client_key_exchange(), rather than checking it in the key exchange algorithm specific code. ok beck@ miod@
2014-11-27Avoid a double-free in an error path.jsing2-4/+2
Reported by Felix Groebert of the Google Security Team. ok beck@ miod@
2014-11-27Avoid a NULL dereference in the DTLS client that can be triggered by ajsing2-2/+18
crafted server response used in conjunction with an anonymous DH or anonymous ECDH ciphersuite. Fixes CVE-2014-3510, which is effectively a repeat of CVE-2014-3470 in copied code. Reported by Felix Groebert of the Google Security Team. ok beck@ miod@
2014-11-26prefer memcmp to bcmp.bcook1-2/+2
ok tedu@ miod@ deraadt@
2014-11-26remove superflous gettimeofday wrapper.bcook2-18/+4
ok beck@ tedu@ miod@ guenther@ doug@ deraadt@
2014-11-26memset like a normal human.bcook2-20/+20
ok beck@ tedu@ miod@
2014-11-26normalize set/getsockopt usage.bcook6-90/+54
Remove the remaining random casts on optval. Fixups for this can be handled by the portability layer all in once place. Remove remaining fake socklen_t unions, though beck@ points out that this also removes support for socklen_t changing its length at runtime. RIP. ok tedu@ beck@ miod@ deraadt@
2014-11-26Linux has had IP_MTU since 2005, don't force it.bcook2-16/+8
ok beck@ miod@ tedu@ deraadt@
2014-11-25rand() is a pseudo-random number generatormillert1-3/+3
2014-11-25Don't describe random() as "better".millert1-5/+5
Remove the bug about rand() being faster. Add a bug about historical implementations seeding very poorly.
2014-11-25Warn people to use arc4random() in DESCRIPTION so they see it usingmillert1-5/+8
the same text from random.3.
2014-11-25rand48(3) not drand48(3) to align with the actual man page and Xrmillert1-3/+3
entries.
2014-11-25no need for md5 xrtedu1-3/+2
2014-11-25revert the bludgeoning of DES. if we need a thread safe crypt, maybe it'stedu1-31/+33
better to find one instead of continuing to mangle this mess.
2014-11-25push some global data down into functions to make this threadlier.tedu1-33/+31
only doing what's needed for crypt_hashpass. sigh.
2014-11-24introduce a hashspace define and check that there's enough space totedu1-15/+10
write out a hash. also simplify writing out the hash.
2014-11-24check crypt() for null. noticed by Jonas Termansentedu1-2/+2
2014-11-23Mention the -no_tls1_[12] optionsguenther1-6/+10
2014-11-22mop up a barely started project... getting in the way of grepping the tree!deraadt2-8/+0
2014-11-22Fix incorrect escape.bentley2-4/+4
2014-11-21MPE support, begone. ok teduderaadt2-4/+4
2014-11-21space needed between macro args and punctuation;jmc1-2/+2
2014-11-21add ERRORS, HISTORY, AUTHORS, Copyright year, and some missing macros;schwarze1-6/+39
ok tedu@ on a previous version
2014-11-21Let crypt_checkpass() set EACCES after bcrypt_checkpass() failure;schwarze1-2/+4
ok tedu@
2014-11-21change prototype for crypt_newhash. the login_cap_t is a holdover from itstedu2-15/+10
pwd_gensalt origins, but a string argument works equally work and is more friendly to consumers beyond local user accounts. ok deraadt
2014-11-20Oops, make sure camellia is compiled on platforms without an arch-specificmiod1-1/+2
Makefile.inc (i.e. landisk and m88k)
2014-11-20split crypt_checkpass off into a new filetedu3-36/+73
2014-11-20Document behavior of atexit() when called in a DSO that is later unloaded.guenther1-2/+14
Would be nice to document when/where this originated (in glibc?) if anyone knows... tweaks by schwarze@ ok jmc@ espie@ kettenis@ schwarze@ dimitry(at)google.com
2014-11-19Nuke yet more obvious #include duplications.krw2-6/+2
ok deraadt@
2014-11-19include camellia.h using the public include pathbcook2-4/+4
2014-11-19Fix a memory leak with pkey in client key exchangedoug2-2/+4
Based on boringssl commit: 1df112448b41c3568477f3fcd3b8fc820ce80066 ok miod@ jsing@
2014-11-18add crypt_newhash to NAME and add an MLINK;jmc2-4/+6
2014-11-18GOST regression tests; from Dmitry Eremin-Solenikovmiod3-1/+18
2014-11-18Argh, another bug introduced in r1.3; Dmitry Eremin-Solenikovmiod2-4/+4
2014-11-18Nuke more obvious #include duplications.krw1-2/+1
ok deraadt@ millert@ tedu@
2014-11-18Update the GOST code in libssl, as contributed by Dmitry Eremin-Solenikov.miod26-146/+594
This causes a libssl major version bump as this affects the layout of some internal-but-unfortunately-made-visible structs.
2014-11-18Enable the build of GOST routines in libcrypto. Riding upon the Cammeliamiod3-8/+6
libcrypto minor bump.
2014-11-18More missing error checks I forgot to commit last week, part of the largemiod2-24/+46
cleanup diff.
2014-11-18Return success in param_copy_gost01() if there is no private key to copy;miod2-4/+4
broken in r1.3. Spotted by Dmitry Eremin-Solenikov
2014-11-18further BUF_strdup conversion: these places should be safe to rely ontedu6-12/+12
the function argument not being NULL
2014-11-17Add the Cammelia cipher to libcrypto.miod27-30/+70
There used to be a strong reluctance to provide this cipher in LibreSSL in the past, because the licence terms under which Cammelia was released by NTT were free-but-not-in-the-corners, by restricting the right to modify the source code, as well retaining the right to enforce their patents against anyone in the future. However, as stated in http://www.ntt.co.jp/news/news06e/0604/060413a.html , NTT changed its mind and made this code truly free. We only wish there had been more visibility of this, for we could have had enabled Cammelia earlier (-: Licence change noticed by deraadt@. General agreement from the usual LibreSSL suspects. Crank libcrypto.so minor version due to the added symbols.
2014-11-17Make the ECDSA_SIG bowels public. This matches RSA_SIG and DSA_SIG, and wemiod4-60/+60
expect a good use for this knowledge in the tree in the near future. Contributed by Vincent Gross, thanks!
2014-11-17add new function crypt_newhash to simplify creating new hashes.tedu2-3/+46
does most of the work pwd_gensalt did, but also creates the hash. (unused yet)