Pedro F. Giffuni
93ea9f9fa1
libc: regexec(3) adjustment.
...
Change the behavior of when REG_STARTEND is combined with REG_NOTBOL.
From the original posting[1]:
"Enable the assumption that pmatch[0].rm_so is a continuation offset
to a string and allows us to do a proper assessment of the character
in regards to it's word position ('^' or '\<'), without risking going
into unallocated memory."
This change makes us similar to how glibc handles REG_STARTEND |
REG_NOTBOL, and is closely related to a soon-to-land fix to sed.
Special thanks to Martijn van Duren and Ingo Schwarze for working
out some consistent behaviour.
Differential Revision: https://reviews.freebsd.org/D6257
Taken from: openbsd-tech 2016-05-24 [1] (Martijn van Duren)
Relnotes: yes
MFC after: 1 month
2016-05-25 15:35:23 +00:00
..
2016-05-04 23:20:53 +00:00
2016-05-21 01:32:20 +00:00
2016-05-22 08:20:30 +00:00
2016-02-04 21:16:35 +00:00
2016-02-05 01:03:38 +00:00
2016-05-12 10:16:16 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-05-04 22:34:11 +00:00
2016-05-16 15:42:59 +00:00
2016-02-04 21:16:35 +00:00
2016-05-13 21:17:49 +00:00
2016-02-04 21:16:35 +00:00
2016-05-25 15:35:23 +00:00
2015-06-13 19:20:56 +00:00
2016-03-14 18:54:29 +00:00
2016-02-04 21:16:35 +00:00
2016-05-24 00:57:11 +00:00
2016-04-16 02:32:12 +00:00
2016-03-26 03:46:12 +00:00
2016-02-04 21:16:35 +00:00
2016-05-25 07:26:22 +00:00
2016-05-18 06:01:18 +00:00
2016-05-04 23:20:53 +00:00
2016-04-26 01:20:16 +00:00
2016-04-04 23:55:32 +00:00
2016-04-27 16:33:17 +00:00
2016-04-04 23:55:32 +00:00
2016-02-04 21:16:35 +00:00
2016-03-02 16:14:46 +00:00
2016-04-21 12:58:29 +00:00
2016-05-01 19:37:33 +00:00
2016-02-04 21:16:35 +00:00
2016-04-21 12:58:29 +00:00
2016-05-20 17:24:34 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-05-25 07:43:32 +00:00
2016-03-02 16:14:46 +00:00
2016-02-04 21:16:35 +00:00
2016-04-19 15:18:31 +00:00
2016-05-01 19:37:33 +00:00
2015-11-25 19:10:28 +00:00
2016-04-18 15:08:31 +00:00
2016-02-04 21:16:35 +00:00
2016-05-01 19:37:33 +00:00
2016-05-01 19:37:33 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-05-14 08:52:37 +00:00
2016-03-02 16:14:46 +00:00
2016-02-10 04:20:39 +00:00
2016-03-02 16:14:46 +00:00
2016-05-12 03:53:20 +00:00
2016-05-20 19:30:52 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-05-04 23:20:53 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-05-16 15:32:02 +00:00
2016-03-02 16:14:46 +00:00
2016-02-16 02:14:30 +00:00
2016-03-02 16:14:46 +00:00
2016-05-01 19:37:33 +00:00
2016-05-04 23:20:53 +00:00
2016-02-04 21:16:35 +00:00
2016-05-24 11:44:43 +00:00
2016-05-11 14:37:33 +00:00
2016-03-02 16:14:46 +00:00
2016-05-04 23:20:53 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-05-01 19:37:33 +00:00
2016-03-02 16:14:46 +00:00
2016-02-04 21:16:35 +00:00
2016-03-02 16:14:46 +00:00
2016-03-02 16:14:46 +00:00
2016-02-04 21:16:35 +00:00
2016-05-20 05:33:26 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-04-04 23:55:32 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-05-19 17:40:00 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-05-18 19:59:05 +00:00
2016-02-04 21:16:35 +00:00
2016-02-04 21:16:35 +00:00
2016-03-14 18:54:29 +00:00
2016-05-01 19:37:33 +00:00
2016-04-11 15:24:59 +00:00
2016-05-18 15:25:45 +00:00
2016-04-13 16:19:50 +00:00
2016-05-01 19:37:33 +00:00
2016-02-04 21:16:35 +00:00
2016-05-04 23:20:53 +00:00
2016-02-04 21:16:35 +00:00
2016-04-16 02:32:12 +00:00
2016-04-04 23:55:32 +00:00
2016-05-18 06:01:18 +00:00
2016-05-09 22:21:09 +00:00
2016-05-04 23:20:53 +00:00
2016-03-14 18:54:29 +00:00