[NumPy-Tickets] [NumPy] #1756: Segfault when recasting string arrays

NumPy Trac numpy-tickets@scipy....
Sat Mar 5 15:36:19 CST 2011

#1756: Segfault when recasting string arrays
 Reporter:  faltet  |       Owner:  somebody   
     Type:  defect  |      Status:  new        
 Priority:  normal  |   Milestone:  Unscheduled
Component:  Other   |     Version:  devel      
 Keywords:          |  

Comment(by charris):

 The problem is at line 2645 of ctors.c

         stransfer(dst_data, dst_stride, src_data, src_stride,
                     count, src_itemsize, transferdata);

 src_itemsize needs to be dst_itemsize in order to work with stransfer,
 which in this case is
 in lowlevel_strided_loops.c.src

 Simply fixing this may have unintended side effects.

Ticket URL: <http://projects.scipy.org/numpy/ticket/1756#comment:8>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list