summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regexec.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-05-26Remove superfluous loop counter to set alternate video interface since wemglocker1-6/+4
store the alternate video interface number already. From Patrick Keshishian, thanks!
2016-05-26Use a fat16 partition starting at sector 2048/1MB everywhere to simplifyjsg4-37/+3
things. OMAP can still load the first u-boot stage (MLO) from the fs and imx u-boot can load files off fat. The offset allows space for the u-boot images placed at raw offsets on imx and sunxi. discussed with kettenis
2016-05-25To prevent screwing up terminal settings when printing to theschwarze7-67/+370
terminal, for ASCII and UTF-8, escape bytes not forming characters and bytes forming non-printable characters with vis(3) VIS_OCTAL. For other character sets, abort printing of the current string in these cases. In particular, * let scp(1) respect the local user's LC_CTYPE locale(1); * sanitize data received from the remote host; * sanitize filenames, usernames, and similar data even locally; * take character display widths into account for the progressmeter. This is believed to be sufficient to keep the local terminal safe on OpenBSD, but bad things can still happen on other systems with state-dependent locales because many places in the code print unencoded ASCII characters into the output stream. Using feedback from djm@ and martijn@, various aspects discussed with many others. deraadt@ says it should go in now, i probably already hesitated too long
2016-05-25KNF with respect to indentation; no code changeschwarze1-28/+27
2016-05-25use a consistent naming for chipsets;jmc1-5/+5
issue found by ross l richardson help/ok stsp
2016-05-25Fix another one-byte buffer underflow (read access only).schwarze1-7/+4
This change touches code that only runs when REG_BASIC is given and the regular expression is anchored with [[:<:]] or \< _and_ uses backreferences. Simplify the logic while here, already looking at the previous character if REG_STARTEND and REG_NOTBOL are both in use, in anticipation of martijn@'s upcoming patch which will further improve REG_STARTEND. OK millert@ martijn@ Also tested by Pedro Giffuni (pfg) on FreeBSD.
2016-05-25Must extract uvm_vnode from uvm_object first before reading the vnodestefan1-3/+11
Otherwise procmap interprets the uvm_vnode contents as a vnode, yielding bogus values. This should cure the "procmap: invalid address (ffffffffffffffff) == -1 vs. 656 @ ffffffffffffffff" error messages that appear sporadically. ok deraadt@
2016-05-25Avoid a use-after-free.krw2-5/+7
Diff from Vladimir Sotirov via tech@. Thanks! ok millert@
2016-05-25regenstsp2-2/+7
2016-05-25Add PCI ID for RTL8188EE. Prompted by Ross L Richardson.stsp1-1/+2
2016-05-25new sentence, new line, and avoid line wrap;jmc1-2/+4
2016-05-25remove knowledge of MNT_EXKERBderaadt1-2/+1
2016-05-25Update iwm(4) to firmware API 16 and enable RTS/CTS frame protection.stsp3-629/+1933
Requires new firmware! Which has been available in fw_update(1) for some time. With helpful hints from Emmanuel Grumbach and contributions from Imre Vadasz. Tested verbatim by phessler@, jasper@, gilles@. Tested as part of a larger diff by reyk@, robert@, Imre Vadasz, and Bryan Vyhmeister. Earlier version tested by many. Also passed by kettenis@ very early on.
2016-05-25remove code to display MNT_EXKERB bitderaadt1-6/+1
2016-05-25MNT_EXKERB bit is unusedderaadt1-2/+1
2016-05-25flesh out "show summary" description a bit, from julien at dhaille.com viahenning1-3/+20
jmc, ok benno claudio
2016-05-25Don't warn when read or write block at cycle boundary, this mayratchov1-9/+1
happen when remote devices are used and is not an error.
2016-05-25el_map.alt can never be NULL, delete dead codeschwarze1-4/+2
OK czarkoff@
2016-05-25deal with the el_errno -> read_errno cleanup, read.c rev. 1.43schwarze2-7/+5
2016-05-25Saving errno in el_errno is only needed for one purpose:schwarze3-35/+26
Restoring the original errno found in el_wgetc() after el_wgets() did some cleanup that may have changed errno. Improve clarity and robustness of the code by not setting and inspecting el_errno where it isn't needed; in particular, let keymacro_get() properly report read failure to read_getcmd(). Move el_errno to el_read_t because it's only used in read.c. Never set errno back to zero. Checked with a test program installing a USR1 signal handler without SA_RESTART, for the cases read_getcmd(), ed_quoted_insert(), keymacro_get(), ed_command(), and EL_EDITMODE=0. OK czarkoff@
2016-05-25Assert we're not freeing buffers we didn't allocateratchov1-1/+7
2016-05-25Log files skipped during poll() as well, and flush the log bufferratchov1-5/+2
right before we call poll().
2016-05-25Set initial mixer slot name to "prog" to make all slots visible inratchov1-2/+2
audioctl and alike.
2016-05-25use -nameopt esc_msb so "NetLock Kft" cert has the non-asciijsg1-2/+2
and non-utf8 bytes escaped. ok sthen@
2016-05-25Use efiboot when setting up the installed disk. If efiboot is placedjsg1-19/+18
in the correct path on disk u-boot will load it and search for dtb files without a script. Leave sabre lite/nitrogen with the old method as boundary devices haven't released u-boot 2015.05 yet. ok kettenis@
2016-05-24NUL-terminate argv when parsing options, following otherokan1-2/+3
implementations; fixes issue when exec*() is used for fuse_args, notably in sshfs; from Hiltjo Posthuma and reminded by ray. ok mpi@
2016-05-24Add missing strdup NULL checks; from Ray Lai.okan2-3/+9
ok mpi@ beck@ mlarkin@
2016-05-24Remove debugging ifdefs.schwarze2-72/+5
I'm debugging the read module for weeks now, but these ifdefs aren't helpful. OK cpp(1).
2016-05-24Remove two sysctls which were introduced only for development of thederaadt2-30/+6
ptm/pty subsystem, and got left behind. ok beck
2016-05-24Drop a redundant set of FPA pool definitions.visa4-38/+8
2016-05-24Reduce the size of gather buffers and allocate more of them to makevisa1-3/+3
better use of memory. This should prevent gather buffer starvation on currently supported systems. Discussed with mpi@
2016-05-24Try to defragment overly long mbuf chains.visa1-2/+9
ok mpi@
2016-05-24Fix previous.visa1-1/+2
2016-05-24Add PCI_PRODUCT_INTEL_100SERIES_LP_THERM, suggested by kettenis@reyk1-1/+2
2016-05-24USB_DISCOVER and USB_GET_STRING_DESC are no more.mpi2-20/+4
ok deraadt@
2016-05-24Kill unused ioctl(2)s.mpi6-141/+10
ok deraadt@
2016-05-24Do not call nd6_output() without route entry argument.mpi2-4/+25
ok bluhm@
2016-05-24KNF compression proposal and simplify the client side a little. ok djm@dtucker2-11/+8
2016-05-24Disabling active cooling trip points when we lack the right method to operate.semarie1-1/+7
Problem reported by James Hastings. ok dcoppa@ mlarkin@
2016-05-24Back out 'plug memleak'.dtucker1-3/+2
2016-05-24remove some ancient debugging codemlarkin1-56/+1
ok deraadt@
2016-05-23prefer agent-hosted keys to keys from PKCS#11; ok markusdjm1-24/+24
2016-05-23various tweaks;jmc1-8/+4
2016-05-23Use PATH_MAX instead of a hardcoded minimal value. Stack space is cheap andkettenis1-2/+2
this isn't the kernel. requested by deraadt@
2016-05-23Use arc4random_uniform() instead of arc4random() to avoid modulus bias.tb1-2/+2
This eliminates the idiom 'arc4random() % X' (where X + 1 is not a power of two) from base. Part of a patch from Matthew Martin from end of last year. ok tedu@ (a long time ago), natano@
2016-05-23Use a fixed buffer for strftime() because there is no portable way tonicm1-14/+5
tell if the buffer is too small, and an expanding buffer is overkill anyway.
2016-05-23Place a cpu-dependent trap/illegal instruction over the remainder of thederaadt12-21/+166
sigtramp page, so that it will generate a nice kernel fault if touched. While here, move most of the sigtramps to the .rodata segment, because they are not executed in the kernel. Also some preparation for sliding the actual sigtramp forward (will need some gdb changes) ok mlarkin kettenis
2016-05-23Remove unused variable, from Ben Boeckel.nicm1-3/+2
2016-05-23regenchris2-0/+5
2016-05-23VIA VL805 xHCIchris1-1/+2