summaryrefslogtreecommitdiff
path: root/Python/import.c
diff options
context:
space:
mode:
authorNir Soffer <nirsof@gmail.com>2017-07-08 21:51:21 +0300
committerBerker Peksag <berker.peksag@gmail.com>2017-07-08 21:51:21 +0300
commit04f77d4677e7508b6ec8de9d0331fdabbcd11d30 (patch)
treea221699df6ca87da7301f344ed97ce7bfc83e837 /Python/import.c
parent03e0df66b8ce0a8d980eb2092b7c6464d26db14e (diff)
downloadcpython-git-04f77d4677e7508b6ec8de9d0331fdabbcd11d30.tar.gz
[3.6] bpo-29854: Fix segfault in call_readline() (GH-728)
If history-length is set in .inputrc, and the history file is double the history size (or more), history_get(N) returns NULL, and python segfaults. Fix that by checking for NULL return value. It seems that the root cause is incorrect handling of bigger history in readline, but Python should not segfault even if readline returns unexpected value. This issue affects only GNU readline. When using libedit emulation system history size option does not work.
Diffstat (limited to 'Python/import.c')
0 files changed, 0 insertions, 0 deletions