[Python-checkins] cpython: Issue #18994: Add a missing check for a return value in fcntmodule. Patch by

charles-francois.natali python-checkins at python.org
Sun Dec 1 15:53:51 CET 2013


http://hg.python.org/cpython/rev/84148898a606
changeset: 87679:84148898a606
user: Charles-François Natali <cf.natali at gmail.com>
date: Sun Dec 01 14:30:47 2013 +0100
summary:
 Issue #18994: Add a missing check for a return value in fcntmodule. Patch by
Vajrasky Kok.
files:
 Modules/fcntlmodule.c | 4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c
--- a/Modules/fcntlmodule.c
+++ b/Modules/fcntlmodule.c
@@ -628,6 +628,8 @@
 return NULL;
 
 /* Add some symbolic constants to the module */
- all_ins(m);
+ if (all_ins(m) < 0)
+ return NULL;
+
 return m;
 }
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /