[New-bugs-announce] [issue18994] Inside fcntl module, we does not check the return code of all_ins function

Vajrasky Kok report at bugs.python.org
Tue Sep 10 09:08:30 CEST 2013


New submission from Vajrasky Kok:

In Modules/fcntlmodule.c, there is a code to insert symbolic constants to the module.

    all_ins(m);

But we don't check the return code of the function whether it is successful or not, unlike in posix module in which we check it.

    if (all_ins(m))
        return NULL;

Attached the patch to add checking of the return code of all_ins function in fcntl module file.

----------
components: Extension Modules
files: check_return_code_all_ins_in_fcntl.patch
keywords: patch
messages: 197425
nosy: vajrasky
priority: normal
severity: normal
status: open
title: Inside fcntl module, we does not check the return code of all_ins function
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file31709/check_return_code_all_ins_in_fcntl.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18994>
_______________________________________


More information about the New-bugs-announce mailing list