public inbox for glibc-bugs-regex@sourceware.org
help / color / mirror / Atom feed
* [Bug regex/5028] New: segfault in regex engine when using C collation and multibyte chars
@ 2007-09-13 15:01 aurelien at aurel32 dot net
  2007-09-13 15:02 ` [Bug regex/5028] " aurelien at aurel32 dot net
  2007-09-24  3:32 ` drepper at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: aurelien at aurel32 dot net @ 2007-09-13 15:01 UTC (permalink / raw)
  To: glibc-bugs-regex

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1245 bytes --]

glibc's regular expression engine crashes with segmentation fault whenever 
trying to compile a regular expression with non-ASCII range expressions if
LC_CTYPE is a UTF-8 locale but LC_COLLATE is set to C or POSIX. This
is a common setup among users who want traditional codepoint-order
sorting but need UTF-8 encoding.

$ LANG=en_US.UTF-8 LC_COLLATE=C grep '[Á-ä]'
Segmentation fault

This is also reproducible with a simple C program.

-- 
           Summary: segfault in regex engine when using C collation and
                    multibyte chars
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: regex
        AssignedTo: drepper at redhat dot com
        ReportedBy: aurelien at aurel32 dot net
                CC: glibc-bugs-regex at sources dot redhat dot com,glibc-
                    bugs at sources dot redhat dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=5028

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug regex/5028] segfault in regex engine when using C collation and multibyte chars
  2007-09-13 15:01 [Bug regex/5028] New: segfault in regex engine when using C collation and multibyte chars aurelien at aurel32 dot net
@ 2007-09-13 15:02 ` aurelien at aurel32 dot net
  2007-09-24  3:32 ` drepper at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: aurelien at aurel32 dot net @ 2007-09-13 15:02 UTC (permalink / raw)
  To: glibc-bugs-regex


------- Additional Comments From aurelien at aurel32 dot net  2007-09-13 15:02 -------
Created an attachment (id=2003)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2003&action=view)
Patch


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5028

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug regex/5028] segfault in regex engine when using C collation and multibyte chars
  2007-09-13 15:01 [Bug regex/5028] New: segfault in regex engine when using C collation and multibyte chars aurelien at aurel32 dot net
  2007-09-13 15:02 ` [Bug regex/5028] " aurelien at aurel32 dot net
@ 2007-09-24  3:32 ` drepper at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: drepper at redhat dot com @ 2007-09-24  3:32 UTC (permalink / raw)
  To: glibc-bugs-regex


------- Additional Comments From drepper at redhat dot com  2007-09-24 03:31 -------
Applied to cvs.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=5028

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-24  3:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-13 15:01 [Bug regex/5028] New: segfault in regex engine when using C collation and multibyte chars aurelien at aurel32 dot net
2007-09-13 15:02 ` [Bug regex/5028] " aurelien at aurel32 dot net
2007-09-24  3:32 ` drepper 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).