Uploaded image for project: 'mod_python'
  1. mod_python
  2. MODPYTHON-185

_psp.parsestring doesn't check for empty values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.3.1
    • psp
    • None
    • All

    Description

      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.

      Attachments

        Activity

          People

            jgallacher James Paul Gallacher
            therve Thomas Hervé
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: