1
0
mirror of git://git.musl-libc.org/musl synced 2025-01-22 06:33:22 +00:00
musl/src
Szabolcs Nagy c498efe117 regex: fix character class repetitions
Internally regcomp needs to copy some iteration nodes before
translating the AST into TNFA representation.

Literal nodes were not copied correctly: the class type and list
of negated class types were not copied so classes were ignored
(in the non-negated case an ignored char class caused the literal
to match everything).

This affects iterations when the upper bound is finite, larger
than one or the lower bound is larger than one. So eg. the EREs

 [[:digit:]]{2}
 [^[:space:]ab]{1,4}

were treated as

 .{2}
 [^ab]{1,4}

The fix is done with minimal source modification to copy the
necessary fields, but the AST preparation and node handling
code of tre will need to be cleaned up for clarity.
2015-03-27 20:24:30 -04:00
..
aio make all objects used with atomic operations volatile 2015-03-03 22:50:02 -05:00
complex
conf add legacy functions from sysinfo.h duplicating sysconf functionality 2015-03-04 22:10:01 -05:00
crypt
ctype
dirent make all objects used with atomic operations volatile 2015-03-03 22:50:02 -05:00
env copy the dtv pointer to the end of the pthread struct for TLS_ABOVE_TP archs 2015-03-11 18:53:48 -04:00
errno
exit make all objects used with atomic operations volatile 2015-03-03 22:50:02 -05:00
fcntl fix uninitialized mode variable in openat function 2014-10-31 15:35:24 -04:00
fenv add aarch64 port 2015-03-11 20:12:35 -04:00
internal add aarch64 port 2015-03-11 20:12:35 -04:00
ipc
ldso add aarch64 port 2015-03-11 20:12:35 -04:00
legacy getloadavg: use sysinfo() instead of /proc/loadavg 2015-02-25 15:37:55 -05:00
linux
locale make all objects used with atomic operations volatile 2015-03-03 22:50:02 -05:00
malloc remove useless check of bin match in malloc 2015-03-04 10:48:00 -05:00
math add aarch64 port 2015-03-11 20:12:35 -04:00
misc add alternate backend support for getgrouplist 2015-03-15 22:32:22 -04:00
mman make fsync, fdatasync, and msync cancellation points 2015-01-30 22:05:40 -05:00
mq
multibyte fix return value computation in one code path of wcsnrtombs 2014-12-18 16:42:21 -05:00
network fix internal buffer overrun in inet_pton 2015-03-23 09:44:18 -04:00
passwd avoid sending huge names as nscd passwd/group queries 2015-03-15 23:46:22 -04:00
prng make all objects used with atomic operations volatile 2015-03-03 22:50:02 -05:00
process make execvp continue PATH search on EACCES rather than issuing an errror 2015-02-03 00:31:35 -05:00
regex regex: fix character class repetitions 2015-03-27 20:24:30 -04:00
sched fix return value of pthread_getaffinity_np and pthread_setaffinity_np 2014-12-02 22:17:52 -05:00
search
select
setjmp add aarch64 port 2015-03-11 20:12:35 -04:00
signal add aarch64 port 2015-03-11 20:12:35 -04:00
stat fix failure of fchmodat to report EOPNOTSUPP in the race path 2015-02-05 23:34:27 -05:00
stdio fix possible isatty false positives and unwanted device state changes 2015-02-23 18:53:01 -05:00
stdlib
string overhaul optimized x86_64 memset asm 2015-02-26 02:07:08 -05:00
temp
termios
thread block all signals (even internal ones) in cancellation signal handler 2015-03-16 20:12:49 -04:00
time make all objects used with atomic operations volatile 2015-03-03 22:50:02 -05:00
unistd fix possible isatty false positives and unwanted device state changes 2015-02-23 18:53:01 -05:00