]> git.lizzy.rs Git - rust.git/commit
auto merge of #12086 : huonw/rust/safe-json, r=kballard
authorbors <bors@rust-lang.org>
Sat, 8 Feb 2014 08:26:30 +0000 (00:26 -0800)
committerbors <bors@rust-lang.org>
Sat, 8 Feb 2014 08:26:30 +0000 (00:26 -0800)
commit95483e30a2fd18ddb72c50a17a87cf8439c8f2bd
tree4510ca2aed050f97a950954d5ba0d8b14cd0d066
parentb2c1a8164905e4130200287d5c38063f242a2ab1
parent5e2de79b3054a815a45b9f4c641d7f1356f2291b
auto merge of #12086 : huonw/rust/safe-json, r=kballard

The lexer and json were using `transmute(-1): char` as a sentinel value for EOF, which is invalid since `char` is strictly a unicode codepoint.

Fixing this allows for range asserts on chars since they always lie between 0 and 0x10FFFF.