summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2017-11-28Add the missing STANDARDS section (kettenis@ noticed that these areIngo Schwarze
POSIX functions) and turn the weird DIAGNOSTICS section into a normal RETURN VALUES section while here.
2017-11-28Rewrite ASN1_TYPE_{get,set}_octetstring() using templated ASN.1.Joel Sing
This removes the last remaining use of the old M_ASN1_* macros (asn1_mac.h) from API that needs to continue to exist. ok beck@ inoguchi@
2017-11-28Correct TLS extensions handling when no extensions are present.Joel Sing
If no TLS extensions are present in a client hello or server hello, omit the entire extensions block, rather than including it with a length of zero. ok beck@ inoguchi@
2017-11-28Add CBB_discard_child(), which allows for a child CBB to be discarded.Joel Sing
Based on BoringSSL.
2017-11-28GNU ld has prefixed the contents of .gnu.warning.SYMBOL sectionsTheo Buehler
with "warning: " since 2003, so the messages themselves need not contain the prefix anymore. From Scott Cheloha ok jca, deraadt
2017-11-28Delete fktrace(2). The consequences of it were not thought throughPhilip Guenther
sufficiently and at least one horrific security hole was the result. ok deraadt@ beck@
2017-11-26Add support for -f option to libfuse. This keeps the FUSE file systemhelg
running in the foreground. ok mpi@
2017-11-22Avoid .align 0 here as well. Also fix a .word that should be a .quad.Mark Kettenis
ok patrick@
2017-11-21Avoid .align 0. Clang's integrated assembler actually honors this directiveMark Kettenis
and the resulting byte-alignment triggers unaligned access. ok patrick@, deraadt@
2017-11-21Use a simple forward search to find '%' in the format string instead ofTheo Buehler
using mbrtowc(3). Thus, we now treat the format string as a bytestring, not as a multibyte character string. We think that ANSI C made a small error when adding wide characters: The committees essentially replaced "characters" with "wide characters" in the existing printf documentation, which was written before the concept of processing was established. Doing processing on the format string would break some 8-bit format strings in the wild, and that isn't something these committees gave themselves license to do. Based on the "10x printf speedup" commit from android found by tedu: https://github.com/aosp-mirror/platform_bionic/commit/5305a4d4a723b06494b93f2df81733b83a0c46d3 Thanks to millert and schwarze for digging into the history and testing *printf behavior on other platforms. ok deraadt, millert
2017-11-17Implement safe signal handling and handle unmount failure gracefully.helg
ok mpi@
2017-11-17Fixes the following bugs when getcwd(3) is used on a fuse file systemhelg
Endless loop if directory nested more than one level from root of file system Current directory not found if the parent directory contains more children than will fit in the buffer passed to VOP_READDIR(9) Open and close directory in fusefs_readdir if dir is not already open. Now behaves as if readdir_ino option was passed to fuse so that directories in path have a valid ino. ok mpi@
2017-11-16Add support for:helg
multiple options after -o. arguments that require options e.g. -p 22 %s, %lu, %u option templates ok mpi@
2017-11-16Add error checking to some calls to __find_arguments(). Matches similarTheo Buehler
changes by schwarze to vfprintf.c r1.71. Cherrypicked from android: https://github.com/aosp-mirror/platform_bionic/commit/5305a4d4a723b06494b93f2df81733b83a0c46d3 ok millert
2017-11-07Fix spelling: bet -> net from Scott Bennett, thanksTheo Buehler
2017-11-04Revert recent changes to unbreak ports/net/sambaJeremie Courreges-Anglas
While it is not clear (to me) why that ports ends up with corrupted shared libs, reverting those changes fixes the issue and should allow us to close p2k17 more smoothly. Discussed with a bunch, ok ajacoutot@ guenther@
2017-11-04fuse_loop_mt() isn't implemented so return an error value.Martin Pieuchot
From Helg Bredow.
2017-11-04Use the correct version macro.Martin Pieuchot
From Helg Bredow, ok pirofti@
2017-11-04polish debug printfs, no behaviour change.Alexandre Ratchov
2017-11-02's' should include 'f'; from Jacqueline JolicoeurOtto Moerbeek
2017-11-02Check if the arguments are NULL instead of dereferencing them blindly.Martin Pieuchot
Delete incorrect "unused" keyword and remove redundant variables due to missing NULL checks. From Helg Bredow.
2017-11-02Update libexpat to 2.2.5. Changes for OpenBSD include a few bugAlexander Bluhm
fixes, no library bump needed. OK deraadt@
2017-10-31Argh: put back some linker-supplied symbols to avoid triggering a bugPhilip Guenther
in binutils that results in uninitialized .dynsym entries in shared objects in the samba port. problem reported by naddy@ ok jca@ kettenis@
2017-10-30fix oob read; form llvm via Vlad Tsyrklevich; ok millert@Otto Moerbeek
2017-10-29Prefer <elf.h> to the non portable <sys/exec_elf.h>.Martin Pieuchot
ok jca@, deraadt@
2017-10-29Stop exporting _memcpy, an implementation detail of bcopy/memcpy/memmovePhilip Guenther
ok kettenis@ deraadt@
2017-10-28Remove __builtin_saveregs: gcc hasn't used it for years.Philip Guenther
suggested by miod@ ok kettenis@
2017-10-28Typo: 'end' should have been '_end', which is already exported/imported.Philip Guenther
Also, '_memcpy' and '_stack' were specific to arm and should not have been copied here
2017-10-28Eliminate some more linker generated symbols that aren't needed.Philip Guenther
ok kettenis@
2017-10-28If the init_routine used with pthread_once() is canceled, then we need toPhilip Guenther
unlock the mutex inside the pthread_once_t. Push a cleanup wrapper for that. Diff from Scott Cheloha <scottcheloha@gmail.com> ok mpi@
2017-10-28Change pthread_cleanup_{push,pop} to macros that store the cleanup infoPhilip Guenther
on the stack instead of mallocing the list and move the APIs from libpthread to libc so that they can be used inside libc. Note: the standard was explicitly written to permit/support this "macro with unmatched brace" style and it's what basically everyone else already does. We xor the info with random cookies with a random magic to detect/trip-up overwrites. Major bump to both libc and libpthread due to the API move. ok mpi@
2017-10-28Stop exporting some symbols internal to the softfloat implementation,Mark Kettenis
unneeded linker-generated symbols and libgcc symbols that are accidentally re-exported. Riding the upcoming libc major bump. ok guenther@
2017-10-28No need to include <sys/param.h> before <sys/sysctl.h>.Martin Pieuchot
ok deraadt@, jca@
2017-10-28consistently use .Vt for variable types and use ".Fa path" where appropriate;Ingo Schwarze
one of the bugs reported by <ilya dot kaliman at gmail dot com> via jmc@
2017-10-27Use <elf.h> instead of <elf_abi.h>Martin Pieuchot
ok jasper@, jca@, deraadt@
2017-10-25Check for NULL before dereferencing untrusted pointers.Martin Pieuchot
from Helg Bredow.
2017-10-24Add more sanity checks to prevent a segfault and a NULL-dereferenceMartin Pieuchot
when manipulating callers probided pointers. From Helg Bredow.
2017-10-23Don't let close(2) clobber errno. Some calls were already protectedTodd C. Miller
but not all. From Peter J. Philipp.
2017-10-22Removed duplicated line.Tobias Stoeckmann
ok jmc@
2017-10-19Restore a return that was inadvertently removed from freezero() in r1.234,Joel Sing
which results in an internal double free when internal functions are not in use. ok otto@
2017-10-17add missing HISTORY; based on CVS logs and release announcementsIngo Schwarze
2017-10-17remove the remaining references to .depend files since nothing creates themChristian Weisgerber
any longer; ok espie@ deraadt@
2017-10-16draft-ietf-tcpm-initcwnd was published as rfc 6928Mike Belopuhov
2017-10-15Move the thread-related .h files to /usr/src/include/, since thePhilip Guenther
implementation is now spread between libc and librthread. No changes to the content ok mpi@
2017-10-15Do not use an uninitialized value when determining the signVisa Hankala
of a denormal result of ldexp(3). The bug was found when investigating why denormal results of pow(3) can have an incorrect sign on loongson. pow(3) misbehaviour reported and fix tested by juanfra@ No objection from deraadt@
2017-10-12Rename ssl3_client_hello() to ssl3_send_client_hello() for consistency.Joel Sing
2017-10-12Fold dtls1_accept() into ssl_accept(), removing a lot of duplicated code.Joel Sing
With review/feedback from inoguchi@
2017-10-12Drop prototypes for ssl23_*() functions, which no longer exist.Joel Sing
2017-10-12Add STANDARDS: denis@ spotted that it was missing.Ingo Schwarze
OK deraadt@ jca@ jmc@
2017-10-11Convert ssl3_client_hello() to CBB.Joel Sing
As part of this, change ssl_cipher_list_to_bytes() to take a CBB argument, rather than a pointer/length. Some additional clean up/renames while here. Based on a diff from doug@