This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug regex/1284] New: improved regex sanity checks for large buffer sizes
- From: "eggert at gnu dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 1 Sep 2005 06:58:46 -0000
- Subject: [Bug regex/1284] New: improved regex sanity checks for large buffer sizes
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
The current regex code has some problems with buffers larger than
2**31 bytes (or larger than 2**63 bytes if in gnulib mode).
The problem is that the code is subtracting a smaller unsigned
value from a large one, and storing the result into a signed value
of the same width. This might overflow, leading to problems.
I'll attach a patch.
--
Summary: improved regex sanity checks for large buffer sizes
Product: glibc
Version: 2.3.5
Status: NEW
Severity: normal
Priority: P2
Component: regex
AssignedTo: gotom at debian dot or dot jp
ReportedBy: eggert at gnu dot org
CC: glibc-bugs-regex at sources dot redhat dot com,glibc-
bugs at sources dot redhat dot com
BugsThisDependsOn: 1281
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1284
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.