commit | 79d96d6bffa21ea59f8e084f0b96d354e6097427 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Aug 16 20:44:34 1996 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Aug 16 20:44:34 1996 +0000 |
tree | 58f8acd5e751528d5fb3335e242704fa7fb215a8 | |
parent | c13bcca2689c4bc08429e7a52e22e3d058f3b8ce [diff] |
Don't die in resizestring() on filter(<func>, "").
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index ea3d30d..c337f1c 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c
@@ -1735,7 +1735,7 @@ GETSTRINGVALUE((stringobject *)item)[0]; } - if (resizestring(&result, j) < 0) + if (j < len && resizestring(&result, j) < 0) return NULL; return result;