summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2016-05-09Don't use sigreturn(2) in longjmp(3). Instead use a similar approach as inMark Kettenis
_longjmp(3) but also restore the signal mask. ok deraadt@
2016-05-09Fix mangled function signatures.Joel Sing
From Carlin Bingham <cb at viennan dot net>, thanks!
2016-05-09Fix stifle_history(): Remove excessive entries, if any.Ingo Schwarze
Based on a patch from Bastian Maerkisch <bmaerkisch at web dot de>, with an additional fix for a memory leak by me. OK czarkoff@
2016-05-09remove mention of dbm(3) and surrounding cruft; ok jmc@Christian Weisgerber
2016-05-08Implement longjmp directly and not on top of sigreturn.Philip Guenther
Use the hidden symbols for internal calls to abort, longjmp, etc ok deraadt@
2016-05-08No, sigaltstack's onstack flag shouldn't be saved. Delete commentPhilip Guenther
wondering about that
2016-05-08Hide __fpu_* and make internal _Qp_* calls go direct.Philip Guenther
ok kettenis@
2016-05-08Simplify sig{set,long}jmp(): just Do The Job instead of calling othersPhilip Guenther
ok kettenis@
2016-05-08Change where_history() to agree with the GNU implementation:Ingo Schwarze
Return 0 for the oldest entry and increment by 1 for each newer, non-deleted entry. This fixes the test_where() regression test. Patch from Bastian Maerkisch <bmaerkisch at web dot de>. OK czarkoff@.
2016-05-08Make the history_set_pos() return values agree with the GNU implementation.Ingo Schwarze
Patch from Bastian Maerkisch <bmaerkisch at web dot de> with a minor tweak from Christos Zoulas. Fixes the test_set_pos_return_values() regression test. OK czarkoff@, also proofread by zhuk@ and by Christian Heckendorf <mbie at ulmus dot me>.
2016-05-08Use /dev/bpf0 instead of /dev/bpf (without loop though), as suggested byMartin Natano
sthen@. to make remote upgrades without media less painful. ok tb@
2016-05-07Unexport sigreturn. Nobody should use it anymore, and it will be removedMark Kettenis
from libc completely in the near future. Riding the libc bump that appeared a few moments ago. ok deraadt@
2016-05-07remove more dbm piecesChristian Weisgerber
2016-05-07remove ancient dbm functions (ndbm remains). nothing uses them in forever.Ted Unangst
2016-05-07stop opening the shadow database by default. only programs that request itTed Unangst
via the _shadow functions will open now, preventing some programs running as root from accidentally loading password hashes it into their memory. ok deraadt
2016-05-07Avoid a transient PLT entry for the internal __getcwd syscall stub forPhilip Guenther
slightly better code on some archs
2016-05-07Declare moncontrol(3) APIs in <sys/gmon.h>Philip Guenther
Export _gmonparam again. Make gcrt0.o use an reserved name for _monstartup() ok millert@
2016-05-07Use a Thread Information Block in both single and multi-threaded programs.Philip Guenther
This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable! Make libpthread dlopen'able by moving the cancelation wrappers into libc and doing locking and fork/errno handling via callbacks that libpthread registers when it first initializes. 'errno' *must* be declared via <errno.h> now! Clean up libpthread's symbol exports like libc. On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec. Testing by various, particularly sthen@ and patrick@ ok kettenis@
2016-05-06typos in comments; from Pedro Giffuni (FreeBSD) via Christos Zoulas (NetBSD)Ingo Schwarze
2016-05-06Replace the generated file "fcns.c" by a simpler header "func.h"Ingo Schwarze
included only in the one file needing it, "map.c". That allows to define el_action_t directly in "map.h", which in turn allows to stop including "fcns.h" from "el.h" and include it only in the modules needing it. Now we no longer autogenerate any C files. Feedback and OK martijn@. First version also proofread by Christian Heckendorf <mbie at ulmus dot me>.
2016-05-04fix for integer overflow in encode and encrypt update functions.Ted Unangst
additionally, in EncodeUpdate, if the amount written would overflow, return 0 instead to prevent bugs in the caller. CVE-2016-2105 and CVE-2016-2106 from openssl.
2016-05-04fix a padding oracle in aesni cbc mac check. there must be enough dataTed Unangst
for both the mac and padding bytes. CVE-2016-2107 from openssl
2016-05-04internal only negative types should not be handled here.Ted Unangst
CVE-2016-2108 from openssl.
2016-05-04be careful about consuming excessive memory by reading in chunks.Ted Unangst
CVE-2016-2109 from openssl.
2016-05-04revert the big change from yesterday to prepare for smaller commits.Ted Unangst
2016-05-04Remove old cruft.Vadim Zhukov
okay millert@
2016-05-04Add ERRORS section (requested by bluhm@). While there, move start ofVadim Zhukov
RETURN VALUES section upper, where it belongs more.
2016-05-04Make KERN_FILE_BYPID return ESRCH when PID not found, both in sysctl andVadim Zhukov
offline paths. More polishing to come. Input and okay bluhm@ & kettenis@.
2016-05-03prefer limits.h over sys/limits.hBrent Cook
2016-05-03patch from openssl for multiple issues:Ted Unangst
missing padding check in aesni functions overflow in evp encode functions use of invalid negative asn.1 types ok beck
2016-05-03Combine help.h and help.c into a simplified help.hIngo Schwarze
and include it only in the one file needing it, map.c. Also delete makelist -bc. OK martijn@, also proofread by Christian Heckendorf <mbie at ulmus dot me>
2016-05-03The files editline.c, historyn.c, and tokenizern.c are completelyIngo Schwarze
constant and very short and simple. Check them into CVS rather than generating them at build time in a complicated way. OK martijn@, also proofread by Christian Heckendorf <mbie at ulmus dot me>
2016-05-03Move to /dev/bpf; ok lteoMartin Natano
2016-05-02Remove a vax remnant (that was really a no-op anyway).Todd C. Miller
2016-05-01Remove old NeXT-specific cruft. From mmcc@Todd C. Miller
2016-04-28Don't add setjmp.S twice.Mark Kettenis
2016-04-28spelling fix;Jason McIntyre
2016-04-28Crank majors for lib{crypto,ssl,tls} due to symbol removals, symbolJoel Sing
additions and functionality changes.
2016-04-28Factor our the keypair handling in libtls. This results in more readableJoel Sing
and self-contained code, while preparing for the ability to handle multiple keypairs. Also provide two additional functions that allow a public certificate and private key to be set with a single function call. ok beck@
2016-04-28Rework the error handling in libtls so that we can associate errors withJoel Sing
both configuration and contexts. This allows us to propagate errors that occur during configuration, rather than either just failing with no reason or delaying the failure until it can be propagated via the tls context. Also provide a tls_config_error() function for retrieving the last error from a tls_config *. ok bcook@
2016-04-28don't go into an unbreakable infinite loop during operations suchTed Unangst
as reading passwords. allow ^C to break. the pain was mine, the fix is miod's.
2016-04-28Implement the IETF ChaCha20-Poly1305 cipher suites.Joel Sing
Rename the existing ChaCha20-Poly1305 cipher suites with an "-OLD" suffix, effectively replaces the original Google implementation. We continue to support both the IETF and Google versions, however the existing names now refer to the ciphers from draft-ietf-tls-chacha20-poly1305-04. Feedback from doug@
2016-04-28Rename EVP_aead_chacha20_poly1305() to EVP_aead_chacha20_poly1305_old()Joel Sing
and replace with EVP_aead_chacha20_poly1305_ietf(). The IETF version will become the standard version. Discussed with many.
2016-04-28Don't use sigreturn(2) in longjmp(3). Instead use a similar approach as inMark Kettenis
_longjmp(3) but also restore the signal mask. ok deraadt@
2016-04-28Initialize the search buffer.Ingo Schwarze
Otherwise, if you called ed-search-prev-history before doing any history search but after entering at least one line into the history, the buffer could get accessed uninitialized, potentially resulting in a read buffer overrun. Segfault reported in sftp(1) via djm@ by Alf Schlichting <A dot Schlichting at lemarit dot com>, who also confirmed that the patch fixes the issue for him. OK martijn@ czarkoff@
2016-04-28remove duplicate strrchr.c entry in SRCSJonathan Gray
ok deraadt@
2016-04-27minor cleanup;Jason McIntyre
2016-04-26Remove predefined strings from libm pages.Theo Buehler
With lots of help, input and tweaks and finally ok schwarze@
2016-04-26Enable LIBREBUILD to construct libc.so.*.aTheo de Raadt
2016-04-25Allow setenv(3) and putenv(3) to operate on a NULL environ pointer.Todd C. Miller
The getenv(3) and unsetenv(3) functions already support this. This will make it easier to emulate the glibc clearenv() function in ports. Based on a diff from and OK jca@