diff options
author | wm4 <wm4@nowhere> | 2014-01-02 23:54:59 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-06 20:21:19 +0100 |
commit | 0beece4397c578912bd91b1b90dd4b2abcba58f8 (patch) | |
tree | 65d709b189e6acbdb80f0b956f3ea7e3922bf1a6 /ta/ta.h | |
parent | 8abdf1f56e46649caadd321b20b418a6b65ff30d (diff) | |
download | mpv-0beece4397c578912bd91b1b90dd4b2abcba58f8.tar.bz2 mpv-0beece4397c578912bd91b1b90dd4b2abcba58f8.tar.xz |
ta: check overflow in array realloc macros
Diffstat (limited to 'ta/ta.h')
-rw-r--r-- | ta/ta.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -54,6 +54,7 @@ void *ta_find_parent(void *ptr); // Utility functions size_t ta_calc_array_size(size_t element_size, size_t count); +size_t ta_calc_prealloc_elems(size_t nextidx); void *ta_new_context(void *ta_parent); void *ta_steal_(void *ta_parent, void *ptr); void *ta_memdup(void *ta_parent, void *ptr, size_t size); |