[Numpy-svn] [numpy/numpy] 8bc0ed: BUG: numpy.ndarray.tofile creates a corrupt file f...
GitHub
noreply at github.com
Sun Dec 4 19:20:59 EST 2016
Branch: refs/heads/maintenance/1.12.x
Home: https://github.com/numpy/numpy
Commit: 8bc0ed191edc5743dd156b9a9d1364d3863f2898
https://github.com/numpy/numpy/commit/8bc0ed191edc5743dd156b9a9d1364d3863f2898
Author: Pavel Potocek <pavelpotocek at gmail.com>
Date: 2016-12-04 (Sun, 04 Dec 2016)
Changed paths:
M numpy/core/src/multiarray/convert.c
M numpy/core/tests/test_multiarray.py
Log Message:
-----------
BUG: numpy.ndarray.tofile creates a corrupt file for large arrays in append file mode
Fixes by using the flag `FALLOC_FL_KEEP_SIZE` (=1) in the `fappend` call.
Fixes #8329
Commit: 4876f24bbbbd871646a6e5adf58c25a107b0cf3b
https://github.com/numpy/numpy/commit/4876f24bbbbd871646a6e5adf58c25a107b0cf3b
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2016-12-04 (Sun, 04 Dec 2016)
Changed paths:
M numpy/core/src/multiarray/convert.c
M numpy/core/tests/test_multiarray.py
Log Message:
-----------
Merge pull request #8339 from charris/backport-8335
BUG: Fix ndarray.tofile large file corruption in append mode.
Compare: https://github.com/numpy/numpy/compare/47c18a0c3ebf...4876f24bbbbd
More information about the Numpy-svn
mailing list