[Scipy-tickets] [SciPy] #813: scipy.ndimage.morphology.* crash when invalid origin is specified.

SciPy scipy-tickets@scipy....
Mon Dec 15 00:33:55 CST 2008


#813: scipy.ndimage.morphology.*  crash when invalid origin is specified.
--------------------+-------------------------------------------------------
 Reporter:  0ion9   |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:          
Component:  Other   |     Version:          
 Severity:  normal  |    Keywords:          
--------------------+-------------------------------------------------------
 Try the following:
 {{{

 >>> import numpy as np
 >>> a = np.zeros((6,6), '?')
 >>> import scipy.ndimage as sn
 >>> sn.binary_dilation (a, origin = (3,3))

 }}}

 The result is 'Segmentation fault'.

 This behaviour holds true for all functions in scipy.ndimage.morphology
 which accept an origin (ie. not actually all of them, just the majority of
 them)

 scipy.ndimage.filters include checks for this which look like they should
 be adaptable here.

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


More information about the Scipy-tickets mailing list