Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - Fixes tokenizer line/column accounting. In a few cases it was calculating negative column values. - The Strings::CodePointNumBytes was never used and it was incorrectly implemented. Fixed this and added unit test. PiperOrigin-RevId: 329348931 * Automated g4 rollback of changelist 329348931. *** Reason for rollback *** Discovered some issues. Will address those, add a few more tests and explain the issue in detail in the fix CL. *** Original change description *** - Fixes tokenizer line/column accounting. In a few cases it was calculating negative column values. - The Strings::CodePointNumBytes was never used and it was incorrectly implemented. Fixed this and added unit test. PiperOrigin-RevId: 329380897 * Automated g4 rollback of changelist 329380897. *** Reason for rollback *** Fixed the corner case of invalid byte at the end of the document, leading to some out of range calculations. *** Original change description *** Automated g4 rollback of changelist 329348931. *** Reason for rollback *** Discovered some issues. Will address those, add a few more tests and explain the issue in detail in the fix CL. *** Original change description *** - Fixes tokenizer line/column accounting. In a few cases it was calculating negative column values. - The Strings::CodePointNumBytes was never used and it was incorrectly implemented. Fixed this and added unit test. PiperOrigin-RevId: 329398986 * Checks for low surrogates should not result in crash. The fuzz library has many low surrogates test cases. Now such code_points are ignored by replacement chars. https://unicodemap.org/range/77/Low_Surrogates/ PiperOrigin-RevId: 329406810 * Skips invalid byte and in sequence in one pass. PiperOrigin-RevId: 329589616 * Automated g4 rollback of changelist 329589616. *** Reason for rollback *** Rolling back recent utf8 changes to fix negative columns. Didn't test properly. *** Original change description *** Skips invalid byte and in sequence in one pass. PiperOrigin-RevId: 329942833 * Automated g4 rollback of changelist 329398986. PiperOrigin-RevId: 329943822 Co-authored-by: Amaltas Bohra <amaltas@google.com>
- Loading branch information