components/libxml2/patches/23.xpathleak.patch
branchs11-update
changeset 2452 9dc4dfa4b04d
parent 2451 f54396da08ea
child 2454 82b8521a2f38
equal deleted inserted replaced
2451:f54396da08ea 2452:9dc4dfa4b04d
     1 Second chunk of the patch was left out since it's already in 2.7.6 even
       
     2 according git history it was committed in one step.
       
     3 
       
     4 From 729601f15772c19778062b98bd0716d8f5c2af3b Mon Sep 17 00:00:00 2001
       
     5 From: Martin <[email protected]>
       
     6 Date: Mon, 12 Oct 2009 20:42:26 +0000
       
     7 Subject: Fix memory leak in xmlXPathEvalExpression()
       
     8 
       
     9 * xpath.c: plug some leaks when parsing misformed XPath expressions
       
    10 * python/tests/xpathleak.py: expand the regression tests for those
       
    11 ---
       
    12 (limited to 'python/tests/xpathleak.py')
       
    13 
       
    14 diff --git a/python/tests/xpathleak.py b/python/tests/xpathleak.py
       
    15 index dcc144c..39f49e3 100644
       
    16 --- a/python/tests/xpathleak.py
       
    17 +++ b/python/tests/xpathleak.py
       
    18 @@ -15,6 +15,14 @@ expect="""--> Invalid expression
       
    19  --> xmlXPathEval: evaluation failed
       
    20  --> Invalid expression
       
    21  --> xmlXPathEval: evaluation failed
       
    22 +--> Invalid expression
       
    23 +--> xmlXPathEval: evaluation failed
       
    24 +--> Invalid expression
       
    25 +--> xmlXPathEval: evaluation failed
       
    26 +--> Invalid expression
       
    27 +--> xmlXPathEval: evaluation failed
       
    28 +--> Invalid expression
       
    29 +--> xmlXPathEval: evaluation failed
       
    30  """
       
    31  err=""
       
    32  def callback(ctx, str):
       
    33 --
       
    34 cgit v0.9.0.2