aboutsummaryrefslogtreecommitdiff
path: root/libexec/rpc.rquotad
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-08-02 20:25:22 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-08-02 20:25:22 +0000
commit00f060000f4ecfafdf376ba43e6f7e3652a1f527 (patch)
tree32066b026a83cb8c68746525d4137b79d03e98ee /libexec/rpc.rquotad
parent20136ffc7b01833e5048403957f7b0ee252a56d0 (diff)
downloadsrc-00f060000f4ecfafdf376ba43e6f7e3652a1f527.tar.gz
src-00f060000f4ecfafdf376ba43e6f7e3652a1f527.zip
Fix a segfault in bsdgrep when parsing the invalid extended regexps "?"
or "+" (these are invalid, because there is no preceding operand). When bsdgrep attempts to emulate GNU grep in discarding and ignoring the invalid ? or + operators, some later logic in tre_compile_fast() goes beyond the end of the buffer, leading to a crash. Fix this by bailing out, and reporting a bad pattern instead. Reported by: Steve Kargl MFC after: 1 week
Notes
Notes: svn path=/head/; revision=303676
Diffstat (limited to 'libexec/rpc.rquotad')
0 files changed, 0 insertions, 0 deletions