quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Gallacher (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (MODPYTHON-185) _psp.parsestring doesn't check for empty values
Date Tue, 15 Aug 2006 16:10:14 GMT
     [ http://issues.apache.org/jira/browse/MODPYTHON-185?page=all ]

Jim Gallacher reassigned MODPYTHON-185:
---------------------------------------

    Assignee: Jim Gallacher

> _psp.parsestring doesn't check for empty values
> -----------------------------------------------
>
>                 Key: MODPYTHON-185
>                 URL: http://issues.apache.org/jira/browse/MODPYTHON-185
>             Project: mod_python
>          Issue Type: Bug
>          Components: psp
>         Environment: All
>            Reporter: Thomas Hervé
>         Assigned To: Jim Gallacher
>            Priority: Minor
>         Attachments: _pspmodule.diff
>
>
> The function _psp_module_parsestring of _pspmodule.c doesn't check the value of parser->pycode.blob
when calling PyString_FromString (whereas it's done in _psp_module_parse). When called with
an empty string it can cause a segfault (blob is NULL and PyString_FromString doesn't check
for NULL value).
> I attach a simple diff correcting the problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message