diff options
-rw-r--r-- | Modules/_sre.c | 3 | ||||
-rw-r--r-- | Objects/longobject.c | 1 |
2 files changed, 3 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) diff --git a/Objects/longobject.c b/Objects/longobject.c index 1094670..e1e9b51 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -70,6 +70,7 @@ _PyLong_New(Py_ssize_t size) PyErr_NoMemory(); return NULL; } + /* coverity[ampersand_in_size] */ return PyObject_NEW_VAR(PyLongObject, &PyLong_Type, size); } |