summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorNir Soffer <nirsof@gmail.com>2017-07-08 18:51:21 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2017-07-08 18:51:21 (GMT)
commit04f77d4677e7508b6ec8de9d0331fdabbcd11d30 (patch)
treea221699df6ca87da7301f344ed97ce7bfc83e837 /Lib/idlelib
parent03e0df66b8ce0a8d980eb2092b7c6464d26db14e (diff)
downloadcpython-04f77d4677e7508b6ec8de9d0331fdabbcd11d30.zip
cpython-04f77d4677e7508b6ec8de9d0331fdabbcd11d30.tar.gz
cpython-04f77d4677e7508b6ec8de9d0331fdabbcd11d30.tar.bz2
[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 'Lib/idlelib')
0 files changed, 0 insertions, 0 deletions