This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug regex/17070] regcomp with REG_EXTENDED uses unbounded CPU or RAM


https://sourceware.org/bugzilla/show_bug.cgi?id=17070

Rich Felker <bugdal at aerifal dot cx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugdal at aerifal dot cx

--- Comment #1 from Rich Felker <bugdal at aerifal dot cx> ---
I'm guessing -9 got interpreted as (size_t)-9, in which case that many states
are really needed in the compiled regex. This is why POSIX allows
implementations to place a limit on the number of repetitions supported in
{n,m} (IIRC only up to 256 need to be supported) and why glibc should make use
of this allowance.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]