Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix OOB read in JSLexer from invalid continuation sequence
Summary: For the JS source input shown from xxd: ``` 2222 efbb bfef ``` which is two double quotes followed by the UTF-8 Byte Order Mark (BOM): 0xef 0xbb 0xbf followed by the beginning of a second BOM. The second BOM is unterminated, and the bug was that we were using the original start of the end of the directive to check the second BOM instead of the current point in the buffer. Reviewed By: tmikov Differential Revision: D22187723 fbshipit-source-id: 21b4a91b38637a15972c37fbbadf1ca5b8721c4c
- Loading branch information