diff options
author | Lars Buitinck <L.J.Buitinck@uva.nl> | 2013-08-27 15:31:22 +0200 |
---|---|---|
committer | Lars Buitinck <L.J.Buitinck@uva.nl> | 2013-08-30 11:44:10 +0200 |
commit | 0b062a8ca9d00584fe8934c84a99b174316f4734 (patch) | |
tree | f95a20f936676c04108be181c01110222c6a54ed /numpy/oldnumeric/user_array.py | |
parent | 49d7ca3e567eae47184c1dddc147e5701929df22 (diff) | |
download | numpy-0b062a8ca9d00584fe8934c84a99b174316f4734.tar.gz |
FIX: unchecked mallocs and Python operations
Rewrote _tmp_string_t handling in buffer.c to use the fact that
realloc(NULL, n) is equivalent to malloc(n). There are still some
unchecked cases in this file.
Also changed some arguments to const and removed casts on malloc
return values; malloc returns void*, which is converted to any
other pointer automatically. Casting the return value of malloc
is more likely to hide bugs than to fix anything.
Diffstat (limited to 'numpy/oldnumeric/user_array.py')
0 files changed, 0 insertions, 0 deletions