Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace_invalid: Replace final incomplete sequence #21

Merged
merged 1 commit into from
Apr 2, 2019

Conversation

glebm
Copy link
Contributor

@glebm glebm commented Nov 28, 2018

In replace_invalid, if NOT_ENOUGH_ROOM is returned by validate_next then it simply means there is an incomplete sequence at the end of the input.

Replace it instead of erroring out.

Example: https://github.com/sass/libsass/files/2064758/test_m001.txt

In replace_invalid, if NOT_ENOUGH_ROOM is returned by `validate_next`
then it simply means there is an incomplete sequence at the end of the
input.

Replace it instead of erroring out.
glebm added a commit to glebm/libsass that referenced this pull request Nov 28, 2018
Fixes sass#2657

Incorporates the following utfcpp patches:

1. Sass addition of `retreat`.
   nemtrif/utfcpp#20

2. Fix for `replace_invalid` throwing on incomplete sequence at the end
   of the input.
   nemtrif/utfcpp#21
xzyfer pushed a commit to sass/libsass that referenced this pull request Nov 28, 2018
Fixes #2657

Incorporates the following utfcpp patches:

1. Sass addition of `retreat`.
   nemtrif/utfcpp#20

2. Fix for `replace_invalid` throwing on incomplete sequence at the end
   of the input.
   nemtrif/utfcpp#21
@nemtrif nemtrif merged commit d8b09b3 into nemtrif:master Apr 2, 2019
@glebm glebm deleted the fix-remove-invalid branch April 3, 2019 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants