Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
rrdtool13
> rrdtool-1.3.1-ssize.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File rrdtool-1.3.1-ssize.diff of Package rrdtool13
--- bindings/python/rrdtoolmodule.c.orig 2008-06-11 20:14:04.000000000 +0200 +++ bindings/python/rrdtoolmodule.c 2008-06-11 20:15:07.000000000 +0200 @@ -61,7 +61,13 @@ 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);