REBOL3 tracker
  0.9.12 beta
Ticket #0001895 User: anonymous

Project:



Short URL: http://issue.cc/r3/1895
rss
TypeBug Statusbuilt Date12-Oct-2011 16:30
Versionalpha 111 CategoryParse Submitted byabolka
PlatformAll Severitymajor Priorityhigh

Summary Binary parsing with charsets produces invalid matches
Description See example code.

Major in severity, because this can lead to silent data corruption in code relying on PARSE for e.g. data validation.
Example code
>> parse #{f0} reduce [charset [#{d0}]]
== true

Assigned ton/a Fixed inr3 master Last Update17-Feb-2014 23:33


Comments
(0003210)
BrianH
12-Oct-2011 18:49

Removed the /all because it's ignored by rule-based parsing, and the /case because it's ignored when parsing binaries. You get the same bug whether those options are specified or not.
(0004239)
abolka
17-Feb-2014 22:39

#{f0} / #{d0} is actually a case sensitivity issue.
U+00F0 is LATIN SMALL LETTER ETH
U+00D0 is LATIN CAPITAL LETTER ETH

Therefore this is a duplicate of #1938.

Date User Field Action Change
17-Feb-2014 23:33 BrianH Fixedin Modified => r3 master
17-Feb-2014 23:33 BrianH Status Modified dismissed => built
17-Feb-2014 22:39 abolka Status Modified reviewed => dismissed
17-Feb-2014 22:39 abolka Comment : 0004239 Added -
12-Oct-2011 18:49 BrianH Comment : 0003210 Added -
12-Oct-2011 18:47 BrianH Code Modified -
12-Oct-2011 18:47 BrianH Status Modified submitted => reviewed
12-Oct-2011 18:47 BrianH Priority Modified normal => high
12-Oct-2011 16:31 abolka Description Modified -
12-Oct-2011 16:31 abolka Code Modified -
12-Oct-2011 16:31 abolka Severity Modified minor => major
12-Oct-2011 16:30 abolka Ticket Added -