[pcre-dev] [Bug 1468] New: Segmentation fault for a text sta…

Góra strony
Delete this message
Autor: Norihiro Tanaka
Data:  
Dla: pcre-dev
Temat: [pcre-dev] [Bug 1468] New: Segmentation fault for a text starting with 0x80 - 0xbf in UTF-8 mode
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1468
           Summary: Segmentation fault for a text starting with 0x80 - 0xbf
                    in UTF-8 mode
           Product: PCRE
           Version: 8.35
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: bug
          Priority: high
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: noritnk@???
                CC: pcre-dev@???



Created an attachment (id=712)
--> (http://bugs.exim.org/attachment.cgi?id=712)
the test case

Segmentation fault occurs in searching for a text starting
with 0x80 - 0xbf in UTF-8 mode.

I attach the test case and the backtrace at segmentation fault.
It seems that `eptr' accesses over staring of text buffer.

I also attach the tentative fix.

See also below.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16586
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17245


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email