public inbox for glibc-bugs-regex@sourceware.org
help / color / mirror / Atom feed
* [Bug regex/13762] New: re_search etc. should return -2 on memory exhaustion
@ 2012-02-27 7:07 eggert at gnu dot org
2013-10-12 20:53 ` [Bug regex/13762] " neleai at seznam dot cz
2014-06-26 14:22 ` fweimer at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: eggert at gnu dot org @ 2012-02-27 7:07 UTC (permalink / raw)
To: glibc-bugs-regex
http://sourceware.org/bugzilla/show_bug.cgi?id=13762
Bug #: 13762
Summary: re_search etc. should return -2 on memory exhaustion
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: regex
AssignedTo: unassigned@sourceware.org
ReportedBy: eggert@gnu.org
CC: drepper.fsp@gmail.com
Classification: Unclassified
Created attachment 6249
--> http://sourceware.org/bugzilla/attachment.cgi?id=6249
Fix re_search to return -2 on memory exhaustion.
I ran into this problem when testing GNU grep, which uses
the re_search function. re_search is supposed to return -2
on internal error, but it returns -1 in some cases when
memory is exhausted. -1 simply means "no match", so this
causes grep to falsely claim "no match" when it should have
reported an error due to memory exhaustion.
I'm attaching a patch against the current git master.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug regex/13762] re_search etc. should return -2 on memory exhaustion
2012-02-27 7:07 [Bug regex/13762] New: re_search etc. should return -2 on memory exhaustion eggert at gnu dot org
@ 2013-10-12 20:53 ` neleai at seznam dot cz
2014-06-26 14:22 ` fweimer at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: neleai at seznam dot cz @ 2013-10-12 20:53 UTC (permalink / raw)
To: glibc-bugs-regex
https://sourceware.org/bugzilla/show_bug.cgi?id=13762
Ondrej Bilka <neleai at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |neleai at seznam dot cz
--- Comment #1 from Ondrej Bilka <neleai at seznam dot cz> ---
Could you send this to libc-alpha?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug regex/13762] re_search etc. should return -2 on memory exhaustion
2012-02-27 7:07 [Bug regex/13762] New: re_search etc. should return -2 on memory exhaustion eggert at gnu dot org
2013-10-12 20:53 ` [Bug regex/13762] " neleai at seznam dot cz
@ 2014-06-26 14:22 ` fweimer at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-26 14:22 UTC (permalink / raw)
To: glibc-bugs-regex
https://sourceware.org/bugzilla/show_bug.cgi?id=13762
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
CC| |fweimer at redhat dot com
Flags| |security-
--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Ondrej Bilka from comment #1)
> Could you send this to libc-alpha?
Seconded.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-26 14:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-27 7:07 [Bug regex/13762] New: re_search etc. should return -2 on memory exhaustion eggert at gnu dot org
2013-10-12 20:53 ` [Bug regex/13762] " neleai at seznam dot cz
2014-06-26 14:22 ` fweimer at redhat 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).