Skip to content

Commit

Permalink
Fix segfault on very large strings, fixes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Jan 4, 2015
1 parent 98be602 commit a3844d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Seld/JsonLint/Lexer.php
Expand Up @@ -22,7 +22,7 @@ class Lexer
private $rules = array(
0 => '/^\s+/',
1 => '/^-?([0-9]|[1-9][0-9]+)(\.[0-9]+)?([eE][+-]?[0-9]+)?\b/',
2 => '{^"(\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^\0-\x09\x0a-\x1f\\\\"])*"}',
2 => '{^"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^\0-\x09\x0a-\x1f\\\\"]+)*"}',
3 => '/^\{/',
4 => '/^\}/',
5 => '/^\[/',
Expand Down

0 comments on commit a3844d4

Please sign in to comment.