We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7911e70 commit cb4a251Copy full SHA for cb4a251
src/read.rs
@@ -907,7 +907,10 @@ fn parse_escape<'de, R: Read<'de>>(
907
]);
908
909
// The \ prior to this byte started an escape sequence,
910
- // so we need to parse that now.
+ // so we need to parse that now. This recursive call
911
+ // does not blow the stack on malicious input because
912
+ // the escape is not \u, so it will be handled by one
913
+ // of the easy nonrecursive cases.
914
return parse_escape(read, validate, scratch);
915
}
916
read.discard();
0 commit comments