summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-30SIZE_MAX is no longer in limits.hTodd C. Miller
2015-04-30Unset SEPARATE_GOTPLT. We don't want a seperate .got.plt section on OpenBSD,Mark Kettenis
at least for now, as it would result in a partially writable GOT. Our ld.so(1) has the smarts to properly write-protect the single .got, so we don't need this. ok guenther@
2015-04-30Clean up some spacing. No functional changeMike Larkin
2015-04-30use strdup() to init stringTheo de Raadt
ok doug millert
2015-04-30Do not free & reallocate a new chunk of memory for the interfaceMartin Pieuchot
descriptor during SIOCSIFFLAGS. This prevent a use after free, triggered by the pool/malloc damage finder being currently cooked by dlg@ and deraadt@. ok deraadt@
2015-04-30Add a comment about waitpid, suggested by espie@.Nicholas Marriott
2015-04-30Set the correct media type for 1000baseLX SFPs.Jonathan Gray
Tested by/ok sthen@, ok mikeb@
2015-04-30Tweak comment so it doesn't imply line buffering is needed (any will doNicholas Marriott
so long as it is explicit), and set stderr to NBF not LBF. Pointed out by espie@.
2015-04-30Add warning when user specifies -R but no files, like GNU grep.Todd C. Miller
OK schwarze@ ian@
2015-04-30Remove SIZE_MAX from limits.h. It was added years ago before weTodd C. Miller
had a proper stdint.h. No ports fallout. OK guenther@ miod@
2015-04-30Allow use of 1Gb 1000baseLX SFPs in 82599 ix(4) SFP+ port. Adapted fromStuart Henderson
Linux commit 345be204dcbb. ok jsg@ mikeb@
2015-04-30FRELE returns an int not void. It is actually the return valueTodd C. Miller
of fdrop() (or 0 if the ref count is non-zero). From Kanonenvogel
2015-04-30Now we use p_filesz - 1 to test for NUL check that p_filesz isJonathan Gray
at least two and while here allow the upper bound to be MAXPATHLEN by changing a >= to > as suggested by krw@ in a thread on tech where Maxime Villard proposed additional PT_INTERP checks. tested by and ok guenther@
2015-04-30Link report descriptors to known sensors.Martin Pieuchot
Since HID buffers always start by a reportID we can access the corresponding report descriptor in O(1). Having a list of sensors attached to each report descriptor makes it easier to update all of them with only on I/O request. Note that sensors are attached in depency order on every report list. From David Higgs.
2015-04-30Instead of using a single flat array for all sensors, put all theMartin Pieuchot
children of a sensor in a separate structure. Children sensors should only be probbed if their parent is active. This make the dependency tree explicit and will reduce the number of I/O. From David Higgs.
2015-04-30Convert to if_input(), tweak and ok dlg@Martin Pieuchot
2015-04-30Indroduce fd_getfile_mode() and use it were fd_getfile() is directlyMartin Pieuchot
followed by a mode check. This will simplify the ref/unref dance as soon as fd_getfile() will increment fp's reference counter. Idea from and ok guenther@, ok millert@
2015-04-30use adolf, not adolph, for hitler, to keep it consistent;Jason McIntyre
remove his suicide entry since it's already listed, more completely, in calendar.history; from craig skinner
2015-04-30No need to set `rcvif', if_input() does it for you!Martin Pieuchot
2015-04-30Convert moar drivers to if_input().Martin Pieuchot
ok dlg@
2015-04-30Error out if the PT_INTERP segment isn't NUL terminatedPhilip Guenther
ok deraadt@ millert@ miod@
2015-04-29If a block body gets broken, that's no good reason to extend theIngo Schwarze
scope of the end macro. Instead, only keep the tail scope open if the end macro macro calls an explicit macro and actually breaks that. This corrects syntax tree structure and fixes an assertion found by jsg@ with afl (test case 098/Apr27).
2015-04-29Replace the kludge for the \z escape sequence by an actualIngo Schwarze
implementation. As a side effect, minus ten lines of code. As another side effect, this also fixes the assertion failure that used to be triggered by "\z\o'ab'c" at the beginning of an output line, found by jsg@ with afl (test case 022/Apr27).
2015-04-29In most cases, IP fragments do not have an Ethernet padding. SoAlexander Bluhm
add a condition to save a useless call to m_adj() and have a paranoid length check in the other cases. OK henning@
2015-04-29some fine-tuning in SYNOPSIS, usage, and order of options, with jmcHenning Brauer
2015-04-29g/c unneeded second char * var, ok bennoHenning Brauer
2015-04-29Do not complain when directions fail.Nicholas Marriott
2015-04-29Add tmux and tmux-256color entries; this can be used inside tmux forNicholas Marriott
correct italics support. ok naddy (on a slightly older version)
2015-04-29Use if_get() after every tsleep(), in case the bottom half of the driverTheo de Raadt
has destroyed or damaged the interface clone. with mpi
2015-04-29If default-terminal is set to "screen" or "screen-*", emulate screen'sNicholas Marriott
historical (incorrect) behaviour for SGR 3 and send smso (standout). Previously, we would send sitm (italics) if the terminal outside had it and smso otherwise. This was acceptably until recently because xterm's terminfo entry lacked sitm, so most users got smso. People who want italics should set default-terminal to the forthcoming "tmux" entry (and be prepared to deal with it being missing on older hosts). As a side-effect this changes default-terminal to be a server rather than a session option. suggested by and ok naddy
2015-04-29Do not mark a block with the MDOC_BROKEN flag if it merely containsIngo Schwarze
a mismatching explicit end macro without actually being broken. Avoids a subsequent upward search for the non-existent breaker ending up in a NULL pointer access; afl test case 005/Apr27 from jsg@.
2015-04-29When the last line of a table layout turns out to be empty, it is deleted.Ingo Schwarze
Do not just free the struct tbl_row but also make sure that no pointer to it remains. Fixing a use after free found by jsg@ with afl.
2015-04-29Check arguments before eval so we don't end up with a cryptic error message.Antoine Jacoutot
reported by jasper@ While here: _rc_is_supported() -> _rc_not_supported() - saves a fork - reduces triple negation to double negation in _rc_not_supported() - simplifie condition for rc_restart=NO from schwarze@ ok jasper@ schwarze@
2015-04-29Improve the error message in case somebody has configured an invalid PAGER.Ingo Schwarze
Suggested by Lorenzo Beretta <lory dot fulgi at infinito dot it>.
2015-04-29support passing a template file for the auto-allocation to disklabel.Henning Brauer
template gives mountpoints, min-max size ranges and percentage of disk foremost intended for autoinstalls, installer bits to follow soon. with input from many, ok theo
2015-04-29Make some regular expressions more strict. This allows the testsAlexander Bluhm
to pass also if relayd is compiled with DEBUG.
2015-04-29When the HTTP client did close the connection while relayd was stillAlexander Bluhm
parsig the HTTP header, the session was never destroyed. This resulted in a file descriptor leak. Add a check wether the protocol knows how much data to expect. If relayd is reading unlimited data or is expecting nothing to read, ignore the end-of-file. Otherwise it is a protocol violation, so close the session immediately. While there, make relayd compile with DEBUG defined. Based on a diff from claudio@; tested by claudio@; OK claudio@ benno@
2015-04-29the non braced do while made my teeth hurtTheo de Raadt
2015-04-29Also generate db_structinfo.txt with struct member offset and size infoPhilip Guenther
prodded by deraadt@ and miod@
2015-04-29Delete the duplicated sched_{policy,param} members from the internal structPhilip Guenther
pthread and instead use the values from the embedded struct pthread_attr. For bonus points, pay attention to the sched_inherit attribute and possibly set the values from the parent thread. Problem noted by natano of bitrig.
2015-04-29Add tests for ListenAddress/Port/AddressFamily in alternate orders.Darren Tucker
2015-04-29Remove a check for NULL that would have been after a NULL dereferenceJonathan Gray
if callers of save_vec() weren't expected to pass a non NULL pointer as an argument. ok kettenis@
2015-04-29Move a variable's initialisation so a panic will work as intended.Jonathan Gray
ok guenther@ deraadt@
2015-04-29Change internal xrealloc() to a idiom-following xreallocarray().Theo de Raadt
This loses a "new size is 0" failure case. Probably not relevant; and since we develop this in OpenBSD, we'll catch that before someone else imports this... ok millert
2015-04-29Allow ListenAddress, Port and AddressFamily in any order. bz#68,Darren Tucker
ok djm@, jmc@ (for the man page bit).
2015-04-29Add whitespace and replace OPENSSL_free with free in documentation.Doug Hogan
ok jsing@
2015-04-29Call CBB_add_space() rather than reimplementing it.Doug Hogan
ok jsing@
2015-04-29Rename cbb_buffer_add_u to cbb_add_u and remove redundant code.Doug Hogan
All of cbb_buffer_add_u's callers first call CBB_flush and send cbb->base. cbb_add_u() now has that common code in one place. ok jsing@
2015-04-29Added len_len error checking for internal cbb_buffer_add_u().Doug Hogan
ok jsing@
2015-04-29Call CBS_mem_equal() rather than reimplementing it.Doug Hogan
ok jsing@