summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-12-29Verify that the section header size supplied in the ELF header is whatmmcc
we expect it to be. This prevents out-of-bounds access or excessive memory allocation on a malformed ELF header. Found by Serguey Parkhomovsky with AFL. Improved by and ok kettenis@
2015-12-29Add transpose-words, ok jasper@.Mark Lumsden
Limited to one iteration until 'undo' is looked into.
2015-12-29Replace single pattern case-blocks with simpler code.Robert Peichaer
OK halex@
2015-12-29Remove backslash, not necessary after '&&'Robert Peichaer
OK halex@
2015-12-29Replace last remaining `` with $()Robert Peichaer
OK halex@
2015-12-29fix exit status on pledge(2) failure.Gleydson Soares
from jsg@
2015-12-29fix exit status on pledge(2) failure.Gleydson Soares
OK tb@ jsg@
2015-12-29fix exit status on pledge(2) failure.Gleydson Soares
OK tb@ jsg@
2015-12-29Tweak previous by de-indenting label and replacing remaining continuesmmcc
with gotos. supported by kettenis@, ok sobrado@
2015-12-29Don't assume fprintf() will set the FILE * error condition.Todd C. Miller
Instead, check the return value of fprintf() and fflush() and call clearerr() before returning on error. OK jca@
2015-12-29mention that ibuf_free() does not need a NULL check.Sebastian Benoit
2015-12-29check for NULL in ibuf_free().Sebastian Benoit
ok and slight improvement, mmcco@ ok semarie@ and encouragement tedu@ krw@
2015-12-29Change send_line() return value to be 1/0 like get_responses() andTodd C. Miller
check the return value in the callers. The inital value of inheaders has been changed to improve readability. OK gilles@ jung@
2015-12-29When running syslogd in debug mode, use a callback to print theAlexander Bluhm
libevent messages. Before the code was removed from libevent, the library itself printed that to stderr. OK nicm@
2015-12-29shuffle tx code slightly and mark bge_start as mpsafe.David Gwynne
reviewed by jmatthew@ ok kettenis@
2015-12-29store curcpu() in ifq_serializer so we can check it.David Gwynne
this in turn gives us ifq_is_serialized() and an IFQ_ASSERT_SERIALIZED() macro. ok mpi@
2015-12-29Change patterns in case-blocks from a*|A* to [aA]*Robert Peichaer
OK halex@ krw@
2015-12-29Set UltraDMA transfer mode. Some (early?) SATA drives, such as the MaxtorMark Kettenis
7Y250M0, refuse to do DMA unless the transfer mode has been set. This causes reads (and presumably writes) to time out. Unlike the wdc code, this only sets the UltraDMA transfer mode. If we ever want to support ancient PATA drivers through the atascsi layer, we probably need to set the PIO and/or MWDMA transfer modes as well. ok jmatthew@, dlg@)
2015-12-29Remove NULL-checks before free().mmcc
ok tb@
2015-12-29Remove reference to $ERRNO, which was been unimplemented for >= 19mmcc
years. From Michael Reed. ok halex@
2015-12-28The last of the e-mail -> email.mmcc
2015-12-28Remove NULL-checks before free() and needless argument casts.mmcc
ok tb@
2015-12-28Replace lseek/[read|write] with pread|pwrite.Kenneth R Westerback
ok millert@ a while ago.
2015-12-28Remove NULL-checks before free() and unnecessary argument casts.mmcc
ok tb@
2015-12-281. Add a loop_end label to the outer loopmmcc
2. Replace a continue statement in an inner loop with goto loop_end This fixes a simple logical bug found with Coccinelle. ok kettenis@
2015-12-28remove spaces after '!'Joerg Jung
no binary change ok millert
2015-12-28Remove NULL-checks before free() and a few related dead assignments.mmcc
ok and valuable input from millert@
2015-12-28Build most of games/ with -Werror-implicit-function-declaration.tb
Prompted by benno's addition of the flag to most of usr.sbin/. ok benno@
2015-12-28build mopd with -Werror-implicit-function-declarationSebastian Benoit
ok tb@
2015-12-28build all lpr tools with -Werror-implicit-function-declarationSebastian Benoit
ok tb@
2015-12-28Switch login(3) from lseek+read/write to pread/pwrite and only do the pread()Philip Guenther
if the data is needed. Use O_CLOEXEC on the internal fd as MT paranoia. Fix cast in offset calculation; delete register keyword; prefer memset() over bzero() ok millert@
2015-12-28fprintf() may not set the error indicator on failure so just useTodd C. Miller
fputs() + putc() to write the string and trailing newline. OK jung@
2015-12-28Remove description of circular queues and add a small blurb aboutTodd C. Miller
XOR simple queues.
2015-12-28Use err() instead of custom perr() function. Also applied by nvi2Todd C. Miller
upstream. From Martijn van Duren.
2015-12-28realloc and free's behavior when passed NULL is defined by C89, so wemmcc
can safely assume it. ok millert@. Also discussed with deraadt@, sthen@, and espie@.
2015-12-28- no need to insist on EFISYS partitions on non-root disks.Robert Peichaer
- prevent autoinstall loop OK krw@
2015-12-28remove unused copy argument from addarg()Joerg Jung
diff from Serguey Parkhomovsky via tech@ ok sunil millert
2015-12-28initialize pointer to avoid undefined free on failureBrent Cook
ok beck@
2015-12-28include time.h over sys/time.h for ctime(3)Brent Cook
ok beck@
2015-12-28Couple of trivial style nits.Nicholas Marriott
2015-12-28build smtpd and smtpctl with -Werror-implicit-function-declarationSebastian Benoit
ok tedu@
2015-12-28build most of usr.sbin with -Werror-implicit-function-declarationSebastian Benoit
ok florian@
2015-12-28update the us army democracy excerpt to more closelyJason McIntyre
match the format of the original; from andre smagin
2015-12-28andy finkel confimed himself as the originator of the rigged demo quote;Jason McIntyre
from netbsd pr 49451
2015-12-28Rework re_start and re_txeof to only check the producer/consumer ringJonathan Matthew
positions when deciding how much work to do, and to adjust rl_tx_free with atomic operations; split the flag that indicates whether we're using timer based interrupts or not out into a separate field so it can be changed from interrupt context without needing a lock; take the kernel lock when calling re_init and re_start from interrupt context; add an interrupt barrier in re_stop; and finally mark the interrupt handler as mpsafe. started by Jim Smith a while ago, mostly finished up at n2k15 tested by dlg@, chris@ and Dimitris Papastamos on various hardware ok dlg@
2015-12-28use ulmin when looking at uio_resid to prevent wrapping around.Ted Unangst
from Martin Natano (and also reported by Stefan Kempf)
2015-12-27set sensor type later on initJoerg Jung
2015-12-27fold for loops back into a wait function in a similar manner as acpiec doesJoerg Jung
2015-12-27Use 'standard' gpt_chk_mbr() to check for protective MBR.Kenneth R Westerback
2015-12-27rename kbdled to backlight and mention chip model in commentJoerg Jung