Commit 739df0d
committed
Safely copy data via pointer got via PyArray_BYTES
At the end of the segmentation, the data is copied directly
from a vector to the data array of the numpy ndarray.
When using the latest versions of numpy, a segfault can be thrown.
This change introduces a safer handling of this copy using
PyArray_BYTES.1 parent 2c7871a commit 739df0d
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
0 commit comments