[Scipy-tickets] [SciPy] #295: ndimage: segfault on incorrect parameters to correlate

SciPy scipy-tickets@scipy....
Sun Nov 2 02:13:27 CST 2008


#295: ndimage: segfault on incorrect parameters to correlate
---------------------------+------------------------------------------------
 Reporter:  stefan         |        Owner:  stefan
     Type:  defect         |       Status:  new   
 Priority:  normal         |    Milestone:  0.7.0 
Component:  scipy.ndimage  |      Version:        
 Severity:  normal         |   Resolution:        
 Keywords:                 |  
---------------------------+------------------------------------------------
Comment (by stefan):

 Reproduced on

 {{{
 In [3]: numpy.__version__
 Out[3]: '1.3.0.dev5972'

 In [4]: scipy.__version__
 Out[4]: '0.7.0.dev4786'
 }}}

 {{{
 ==16542== Invalid read of size 8
 ==16542==    at 0xC674ACE: NI_Correlate (ni_filters.c:239)
 ==16542==    by 0xC671D24: Py_Correlate (nd_image.c:161)
 ==16542==    by 0x48964A: PyEval_EvalFrameEx (ceval.c:3573)
 ==16542==    by 0x488C06: PyEval_EvalFrameEx (ceval.c:3659)
 ==16542==    by 0x48A405: PyEval_EvalCodeEx (ceval.c:2836)
 ==16542==    by 0x488074: PyEval_EvalFrameEx (ceval.c:3669)
 ==16542==    by 0x48A405: PyEval_EvalCodeEx (ceval.c:2836)
 ==16542==    by 0x48A521: PyEval_EvalCode (ceval.c:494)
 ==16542==    by 0x4ABE2D: PyRun_FileExFlags (pythonrun.c:1273)
 ==16542==    by 0x4AC0C8: PyRun_SimpleFileExFlags (pythonrun.c:879)
 ==16542==  Address 0x7bcca80 is 0 bytes after a block of size 48 alloc'd
 ==16542==    at 0x4C22FAB: malloc (vg_replace_malloc.c:207)
 ==16542==    by 0xC68184D: NI_InitFilterOffsets (ni_support.c:478)
 ==16542==    by 0xC674854: NI_Correlate (ni_filters.c:197)
 ==16542==    by 0xC671D24: Py_Correlate (nd_image.c:161)
 ==16542==    by 0x48964A: PyEval_EvalFrameEx (ceval.c:3573)
 ==16542==    by 0x488C06: PyEval_EvalFrameEx (ceval.c:3659)
 ==16542==    by 0x48A405: PyEval_EvalCodeEx (ceval.c:2836)
 ==16542==    by 0x488074: PyEval_EvalFrameEx (ceval.c:3669)
 ==16542==    by 0x48A405: PyEval_EvalCodeEx (ceval.c:2836)
 ==16542==    by 0x48A521: PyEval_EvalCode (ceval.c:494)
 }}}

-- 
Ticket URL: <http://scipy.org/scipy/scipy/ticket/295#comment:8>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list