Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
netflow
>
rrdtool
> rrdtool-1.2.27-ssize.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File rrdtool-1.2.27-ssize.diff of Package rrdtool
--- bindings/python/rrdtoolmodule.c +++ bindings/python/rrdtoolmodule.c @@ -57,7 +57,12 @@ PyObject *o; int size, i; - size = PyTuple_Size(args); + if ( PyTuple_Size(args) <= INT_MAX ) + size = PyTuple_Size(args); + else { + PyErr_Format(PyExc_ValueError,"too big return value"); + return -1; + } *argv = PyMem_New(char *, size + 1); if (*argv == NULL) return -1;