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

_psp.parsestring doesn't check for empty values

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.1
    • Component/s: psp
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              jgallacher Jim Gallacher
              Reporter:
              therve Thomas Hervé
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: