public inbox for glibc-bugs-regex@sourceware.org
help / color / mirror / Atom feed
* [Bug regex/28864] New: Out of memory in regcomp() with many
@ 2022-02-05 0:42 sh200105 at mail dot ru
2022-02-05 0:43 ` [Bug regex/28864] Out of memory in regcomp() with many '+' changes in a row sh200105 at mail dot ru
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: sh200105 at mail dot ru @ 2022-02-05 0:42 UTC (permalink / raw)
To: glibc-bugs-regex
https://sourceware.org/bugzilla/show_bug.cgi?id=28864
Bug ID: 28864
Summary: Out of memory in regcomp() with many
Product: glibc
Version: 2.33
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: regex
Assignee: unassigned at sourceware dot org
Reporter: sh200105 at mail dot ru
CC: drepper.fsp at gmail dot com
Target Milestone: ---
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug regex/28864] Out of memory in regcomp() with many '+' changes in a row
2022-02-05 0:42 [Bug regex/28864] New: Out of memory in regcomp() with many sh200105 at mail dot ru
@ 2022-02-05 0:43 ` sh200105 at mail dot ru
2022-02-05 0:46 ` [Bug regex/28864] Out of memory in regcomp() with many '+' characters " sh200105 at mail dot ru
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: sh200105 at mail dot ru @ 2022-02-05 0:43 UTC (permalink / raw)
To: glibc-bugs-regex
https://sourceware.org/bugzilla/show_bug.cgi?id=28864
Alexander Kernozhitsky <sh200105 at mail dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Out of memory in regcomp() |Out of memory in regcomp()
|with many |with many '+' changes in a
| |row
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug regex/28864] Out of memory in regcomp() with many '+' characters in a row
2022-02-05 0:42 [Bug regex/28864] New: Out of memory in regcomp() with many sh200105 at mail dot ru
2022-02-05 0:43 ` [Bug regex/28864] Out of memory in regcomp() with many '+' changes in a row sh200105 at mail dot ru
@ 2022-02-05 0:46 ` sh200105 at mail dot ru
2022-02-05 0:47 ` sh200105 at mail dot ru
2023-08-24 15:05 ` jwakely.gcc at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: sh200105 at mail dot ru @ 2022-02-05 0:46 UTC (permalink / raw)
To: glibc-bugs-regex
https://sourceware.org/bugzilla/show_bug.cgi?id=28864
Alexander Kernozhitsky <sh200105 at mail dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Out of memory in regcomp() |Out of memory in regcomp()
|with many '+' changes in a |with many '+' characters in
|row |a row
--- Comment #1 from Alexander Kernozhitsky <sh200105 at mail dot ru> ---
The following program runs out of memory when being run:
#include <regex.h>
#include <stdlib.h>
int main() {
const char *re =
"C++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
regex_t regex;
if (regcomp(®ex, re, REG_NEWLINE | REG_EXTENDED)) {
return EXIT_FAILURE;
}
return 0;
}
Steps to reproduce:
Compile and run the source code above.
Alternatively, the same bug is triggered when running `grep -E
'C++++++++++++++++++++++++++++++++++++++++++++++++'`.
I am using glibc 2.33-5 from Debian packages.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug regex/28864] Out of memory in regcomp() with many '+' characters in a row
2022-02-05 0:42 [Bug regex/28864] New: Out of memory in regcomp() with many sh200105 at mail dot ru
2022-02-05 0:43 ` [Bug regex/28864] Out of memory in regcomp() with many '+' changes in a row sh200105 at mail dot ru
2022-02-05 0:46 ` [Bug regex/28864] Out of memory in regcomp() with many '+' characters " sh200105 at mail dot ru
@ 2022-02-05 0:47 ` sh200105 at mail dot ru
2023-08-24 15:05 ` jwakely.gcc at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: sh200105 at mail dot ru @ 2022-02-05 0:47 UTC (permalink / raw)
To: glibc-bugs-regex
https://sourceware.org/bugzilla/show_bug.cgi?id=28864
Alexander Kernozhitsky <sh200105 at mail dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sh200105 at mail dot ru
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug regex/28864] Out of memory in regcomp() with many '+' characters in a row
2022-02-05 0:42 [Bug regex/28864] New: Out of memory in regcomp() with many sh200105 at mail dot ru
` (2 preceding siblings ...)
2022-02-05 0:47 ` sh200105 at mail dot ru
@ 2023-08-24 15:05 ` jwakely.gcc at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: jwakely.gcc at gmail dot com @ 2023-08-24 15:05 UTC (permalink / raw)
To: glibc-bugs-regex
https://sourceware.org/bugzilla/show_bug.cgi?id=28864
Jonathan Wakely <jwakely.gcc at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jwakely.gcc at gmail dot com
--- Comment #2 from Jonathan Wakely <jwakely.gcc at gmail dot com> ---
This seems to be a dup of PR 20095
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-08-24 15:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-05 0:42 [Bug regex/28864] New: Out of memory in regcomp() with many sh200105 at mail dot ru
2022-02-05 0:43 ` [Bug regex/28864] Out of memory in regcomp() with many '+' changes in a row sh200105 at mail dot ru
2022-02-05 0:46 ` [Bug regex/28864] Out of memory in regcomp() with many '+' characters " sh200105 at mail dot ru
2022-02-05 0:47 ` sh200105 at mail dot ru
2023-08-24 15:05 ` jwakely.gcc at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).