diff options
author | wm4 <wm4@nowhere> | 2014-01-02 23:54:59 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-02 23:54:59 +0100 |
commit | 2cad237f8bea862923bf9e7e2d7c55544f6248e0 (patch) | |
tree | 907febddd4fb439bfa8b1058140000a7516f8955 /ta/ta.h | |
parent | d4f37174a16afad6394e48e203abb41252e382d2 (diff) | |
download | mpv-2cad237f8bea862923bf9e7e2d7c55544f6248e0.tar.bz2 mpv-2cad237f8bea862923bf9e7e2d7c55544f6248e0.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); |