summaryrefslogtreecommitdiffstats
path: root/ta/ta.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-02 23:54:59 +0100
committerwm4 <wm4@nowhere>2014-01-06 20:21:19 +0100
commit0beece4397c578912bd91b1b90dd4b2abcba58f8 (patch)
tree65d709b189e6acbdb80f0b956f3ea7e3922bf1a6 /ta/ta.h
parent8abdf1f56e46649caadd321b20b418a6b65ff30d (diff)
downloadmpv-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ta/ta.h b/ta/ta.h
index c8a333f784..c21e0b0e39 100644
--- a/ta/ta.h
+++ b/ta/ta.h
@@ -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);