diff options
author | Christian Heimes <christian@cheimes.de> | 2008-01-18 19:12:56 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-01-18 19:12:56 (GMT) |
commit | 4956d2b88981fd5a6481cd048d7efd514594b6e9 (patch) | |
tree | 908e04f18f858eba08770a241e6991bdf33da5ec /Modules/_sre.c | |
parent | 288e89acfc29cf857a8c5d314ba2dd3398a2eae9 (diff) | |
download | cpython-4956d2b88981fd5a6481cd048d7efd514594b6e9.zip cpython-4956d2b88981fd5a6481cd048d7efd514594b6e9.tar.gz cpython-4956d2b88981fd5a6481cd048d7efd514594b6e9.tar.bz2 |
Silence Coverity false alerts with CIDs #172, #183, #184
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r-- | Modules/_sre.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c index d79d5a7..808fb57 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -2678,7 +2678,7 @@ _compile(PyObject* self_, PyObject* args) return NULL; n = PyList_GET_SIZE(code); - + /* coverity[ampersand_in_size] */ self = PyObject_NEW_VAR(PatternObject, &Pattern_Type, n); if (!self) return NULL; @@ -3185,6 +3185,7 @@ pattern_new_match(PatternObject* pattern, SRE_STATE* state, int status) if (status > 0) { /* create match object (with room for extra group marks) */ + /* coverity[ampersand_in_size] */ match = PyObject_NEW_VAR(MatchObject, &Match_Type, 2*(pattern->groups+1)); if (!match) |