Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
bpo-40334: Improvements to error-handling code in the PEG parser#20003
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Following improvements are implemented in this PR:- `p->error_indicator` is set, in case malloc or realloc fail- Avoid memory leaks in the case that realloc fails- Call `PyErr_NoMemory()` instead of `PyErr_Format()`, because it requires no memory.
Note to self: This partially conflicts with#19987, so will probably need to merge master after that's landed. |
pablogsal commentedMay 11, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
|
I can't really see this, how exactly is this? |
I have checked again and this only happens when the rule does not return |
lysnikolaou commentedMay 17, 2020 • edited by bedevere-bot
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by bedevere-bot
Uh oh!
There was an error while loading.Please reload this page.
Resolved the conflicts so that we can hopefully merge this and closebpo-40334. |
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
@lysnikolaou You need to regenerate the parser 😉 |
lysnikolaou commentedMay 17, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Done! Sorry, it's getting late.. |
No problem. I want to land this and the other PR so they both make it to beta 1 which is next Monday :) |
…honGH-20003)The following improvements are implemented in this commit:- `p->error_indicator` is set, in case malloc or realloc fail.- Avoid memory leaks in the case that realloc fails.- Call `PyErr_NoMemory()` instead of `PyErr_Format()`, because it requires no memory.Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Uh oh!
There was an error while loading.Please reload this page.
Following improvements are implemented in this PR:
p->error_indicator
is set, in case malloc or realloc failPyErr_NoMemory()
instead ofPyErr_Format()
, because itrequires no memory
https://bugs.python.org/issue40334