Skip to content

fix: endless loop in utf8_len while input is an invalid utf8 string#62

Merged
spacewander merged 5 commits intoapi7:masterfrom
Gerrard-YNWA:fix/strlen-endless-loop
Jan 13, 2022
Merged

fix: endless loop in utf8_len while input is an invalid utf8 string#62
spacewander merged 5 commits intoapi7:masterfrom
Gerrard-YNWA:fix/strlen-endless-loop

Conversation

@Gerrard-YNWA
Copy link
Contributor

This pr references the implementation of the utf8.RuneCountInString in golang, takes invalid utf8 strings in consideration and treats them as single bytes. close #61

@membphis
Copy link
Contributor

@Gerrard-YNWA do you have time to resolve the confilicts? After this, we are ready to merge this PR

@Gerrard-YNWA Gerrard-YNWA force-pushed the fix/strlen-endless-loop branch from ca38e0c to a69e541 Compare January 11, 2022 09:46
@Gerrard-YNWA
Copy link
Contributor Author

@membphis I have rebased the latest code but CI seems failed on install Linux Script step

@spacewander
Copy link
Contributor

We can upgrade luarocks to 3.8.0 via this action?
https://github.com/leafo/gh-actions-luarocks

@Gerrard-YNWA
Copy link
Contributor Author

We can upgrade luarocks to 3.8.0 via this action? https://github.com/leafo/gh-actions-luarocks

Okay, I'll have a try.

@Gerrard-YNWA
Copy link
Contributor Author

Hi @spacewander, CI passed now, plz take a look when you have time : )

@membphis membphis requested a review from spacewander January 13, 2022 05:46
@spacewander
Copy link
Contributor

@Gerrard-YNWA
Could you resolve the conflict?

@Gerrard-YNWA Gerrard-YNWA force-pushed the fix/strlen-endless-loop branch from d1efabb to 0a181e7 Compare January 13, 2022 06:47
@Gerrard-YNWA
Copy link
Contributor Author

@spacewander resolved : )

@spacewander spacewander merged commit d4e69f1 into api7:master Jan 13, 2022
@spacewander
Copy link
Contributor

Merged. Thanks!

spacewander added a commit to spacewander/incubator-apisix that referenced this pull request Jan 13, 2022
See api7/jsonschema#62

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
spacewander added a commit to spacewander/incubator-apisix that referenced this pull request Jan 13, 2022
See api7/jsonschema#62

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
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.

endless loop in utf8_len

3 participants