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

Check the unicode code point range before unichr() is called #298

Merged
merged 2 commits into from Apr 21, 2022

Conversation

ks888
Copy link
Contributor

@ks888 ks888 commented Apr 21, 2022

Fixes #297

@etrepum etrepum merged commit d8cee7b into simplejson:master Apr 21, 2022
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request Nov 23, 2022
Changelog:
==========
* Allow serialization of classes that implement for_json or _asdict by
  ignoring TypeError when those methods are called
  simplejson/simplejson#302
* Raise JSONDecodeError instead of ValueError in invalid unicode escape
  sequence edge case
  simplejson/simplejson#298

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@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.

loads() returns ValueError when the invalid unicode escape sequence is given
2 participants