summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2014-07-04Track whether a process is a zombie or not yet fully built via flagsPhilip Guenther
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's thread data. This eliminates the need for the thread-level SDEAD state. Change kvm_getprocs() (both the sysctl() and kvm backends) to report the "most active" scheduler state for the process's threads. tweaks kettenis@ feedback and ok matthew@
2014-07-03Memory-leak-in-error-path of the day in X509_ATTRIBUTE_set1_data().Miod Vallat
ok logan@ beck@
2014-07-03rework some fflush text, as requestedJason McIntyre
From: Edward tweaks From: Tim van der Molen
2014-07-02Various small typographic fixes for mman.h manual pages:Matthew Dempsky
Use .Fn instead of .Nm as appropriate Use .In for include lines Use .Rv -std where possible Use .Xr to refer to functions from other manual pages Remove extraneous sys/types.h include More substantive changes to follow. Discussed with schwarze
2014-07-02Memory leak in error path of the day, from clang via dhill@bitrig;Miod Vallat
ok dhill@bitrig
2014-07-02Sync description of PROT_* flags between mmap.2 and mprotect.2Matthew Dempsky
ok guenther
2014-07-02pk7_doit.c r1.20 introduced a NULL check that ensures that the signatureJoel Sing
contents are not NULL, however this breaks detached signature processing. Fix this by allowing the signature contents to be NULL when operating with a detached signature. Found the hard way by sthen@. ok sthen@
2014-07-02Remove more unused cruft.Joel Sing
No objection from the usual suspects.
2014-07-02KNF.Joel Sing
2014-07-01Avoid a NULL deref in i2d_ECPrivateKey() when an EC_KEY lacks the public keyMiod Vallat
member (which is perfectly acceptable). From BoringSSL (Adam Langley), commit f71a27920a903c9c36bcb31e68781b17674d3fd2
2014-07-01Use a flag on the pthread_t to indicate that the thread's stack wasPhilip Guenther
allocated by the kernel's execve bits. ok matthew@
2014-06-30simplify and unobfuscate a variable to fix a mem leak.Ted Unangst
original diff by logan
2014-06-30fix the identical leak in three different files.Ted Unangst
reported by Brent Cook, original diff by logan
2014-06-30sys/types.h rather than sys/param.h, where applicable. avoid overreach.Theo de Raadt
2014-06-30sort includes much more sensiblyTheo de Raadt
2014-06-30limits.h rather than sys/param.hTheo de Raadt
2014-06-29Free "data" when it's no longer in use.Loganaden Velvindron
(Thanks to Brent Cook) OK from jsing@
2014-06-29Fix file descriptor leakLoganaden Velvindron
(Thanks to Brent Cook) OK from jsing@
2014-06-29Remove yet another unused file... a backup copy (minus copyright andJoel Sing
includes) follows this commit message:
2014-06-29KNF.Joel Sing
I just spent too long chasing a bug in here and really should have done this first. Gem of the day... is it an if test or a for loop? No, it is a super ifloop! if (!(flags & PKCS7_NOVERIFY)) for (k = 0; k < sk_X509_num(signers); k++) {
2014-06-29Remove another unused source file - I got suspicious when I found aJoel Sing
function that ended with: if (ret & 0x01) if (ret & V_ASN1_CONSTRUCTED) }
2014-06-29More KNF.Joel Sing
2014-06-29correct issetugid sense as spotted by Stijn van Drongelen.Theo de Raadt
Substantially expand the conditional to reduce potential for error.
2014-06-28Add a missing word.Jeremie Courreges-Anglas
2014-06-28Fix a memory leak and another one that occurs in the error paths.Loganaden Velvindron
(Thanks to Brent Cook) OK from tedu@
2014-06-28Fix 9 memory leaks.Loganaden Velvindron
(Thanks to Brent Cook) With help from tedu@ OK from tedu@
2014-06-28Fix 2 memory leaks.Loganaden Velvindron
(Thanks to Brent Cook) OK from tedu@
2014-06-28Use strtonum() instead of atoi(), and then impose what are we thinkTheo de Raadt
are the current range checks. Help from millert and lteo. Please test now that it is deployed and let us know if any numbers are off.. ok lteo
2014-06-27Fix mmap() flag usage: explicitly specify MAP_PRIVATE and drop uselessMatthew Dempsky
MAP_FILE and MAP_HASSEMAPHORE flags. Discussed with deraadt, tedu, and kettenis
2014-06-27zap unneccessary punctuation;Jason McIntyre
2014-06-27When building a BN on the stack in BN_div(), make sure to initialize all itsMiod Vallat
fields (i.e. the flags field) before using it. This is currently harmless, but might not be if we end up invoking other BN functions checking for constant-time processing requirement in the future.
2014-06-27re-init and init code paths are now more shared, so the getpid()-basedTheo de Raadt
portable code path must handle that; with brent cook
2014-06-27Cleanup ioctl.2 slightly:Matthew Dempsky
- Markup ioctl argument types with Fa - Be clearer that ioctl arguments are pointers to ints. Similar changes to follow for manual pages that describe device-specific ioctl commands. Discussed with jmc and schwarze.
2014-06-27OpenBSD supports mmap() on block special files too.Matthew Dempsky
2014-06-27Split out mmap's compatibility flags into a separate section, so usersMatthew Dempsky
aren't misled into thinking they're useful on OpenBSD.
2014-06-27Revise wording to reflect that callers should always specify (exactly)Matthew Dempsky
one of MAP_PRIVATE or MAP_SHARED, as required by POSIX. However, also caveat that currently OpenBSD doesn't strictly enforce this behavior.
2014-06-27extra evil spaces snuck in over the last whileTheo de Raadt
2014-06-27Move to a smaller rbytes buffer and skip a random part. Not toOtto Moerbeek
improve the random stream itself (it doesn't), but to introduce noise in the arc4random calling pattern. Thanks to matthew@ who pointed out bias in a previous diff, ok deraadt@ matthew@
2014-06-27save_errno botch; spotted by miodTheo de Raadt
2014-06-27hand-KNF macro the do { } while loopsTheo de Raadt
2014-06-27hand-KNF the remaining bitsTheo de Raadt
2014-06-27Remove M_ASN1_New* macros which are only used in X509_PKEY_new() are obfuscateMiod Vallat
it to hide memory leaks in the error paths, and fix aforementioned memory leaks. ok jsing@ logan@ deraadt@
2014-06-26Add back an #ifndef MAP_INHERIT_ZERO chunk to support the old getpid()Theo de Raadt
mechanism, to aid in portability to other systems as requested. ok matthew
2014-06-26Document that mmap() confirms to POSIX 2008, except that we generateMatthew Dempsky
SIGSEGV instead of SIGBUS for page references beyond the end of a mapped object.
2014-06-26save errno in ERR_put_error(), so that SYSerr doesn't have any accidentalTheo de Raadt
cases where errno can be trashed. ok jsing
2014-06-26fix HD() misuse; from brent cookTheo de Raadt
2014-06-26Convert several calloc calls to reallocarray. These calloc calls wereLawrence Teo
originally malloc(n * m) calls (without memset/bzero) in the past. ok deraadt@ tedu@
2014-06-25AT_BASE returns us the *address* of the start of ld.so, soBob Beck
use the address, not what it points to (which is always the same) ok deraadt@
2014-06-25get the page of data at AT_SYSINFO_EHDRBob Beck
ok deraadt@
2014-06-25comment fixes from theoBob Beck