commit | 2c8cd06afe8e0abb52367f85978f19b88e2df53e | [log] [tgz] |
---|---|---|
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | Sun May 17 06:19:23 2020 +0300 |
committer | GitHub <noreply@github.com> | Sun May 17 04:19:23 2020 +0100 |
tree | ea90af6b2975c27c85f491e2eda51911c15c3d6f | |
parent | 6341fc7257d89d798675ad6e425f7eb0b6f2b4bb [diff] |
bpo-40334: Improvements to error-handling code in the PEG parser (GH-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>