Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
It's possible to make a debug build of Python abort by passing an invalid Unicode argument to_interpreters.create(), resulting inSystemError: <built-in function create> returned a result with an exception set.
$ ./python-c"import _interpreters; _interpreters.create('\udc80')"FatalPythonerror:_Py_CheckFunctionResult:afunctionreturnedaresultwithanexceptionsetPythonruntimestate:initializedUnicodeEncodeError:'utf-8'codeccan't encode character '\udc80'inposition0:surrogatesnotallowedTheaboveexceptionwasthedirectcauseofthefollowingexception:SystemError:<built-infunctioncreate>returnedaresultwithanexceptionsetCurrentthread0x00007f0234dca740 (mostrecentcallfirst):File"<string>",line1in<module>Aborted
Found using fusil by@vstinner.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux, Windows
Linked PRs
Metadata
Metadata
Assignees
Labels
Projects
Status
Done