[Issue 1347] New: invalid UTF-8 strings cause access violations and inconsistent behavior in std.regexp

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 18 14:54:48 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1347

           Summary: invalid UTF-8 strings cause access violations and
                    inconsistent behavior in std.regexp
           Product: D
           Version: 1.018
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: thecybershadow at gmail.com


import std.regexp;

void main()
{
        ubyte[] data = [0xFF];
        RegExp re = new RegExp(`.*`);
        re.test(cast(char[])data);
}

---
Caused me some headache when I to process some non-Unicode files and forgot to
convert the data.


-- 



More information about the Digitalmars-d-bugs mailing list