diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-04-25 00:27:46 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-05-08 01:39:12 +0200 |
commit | ee9794ed20528c2aa4c53cf67cb218bdce6e0485 (patch) | |
tree | 72180c5e92de0d748d2b828438d745c04c93fb4c /libavutil/mem.h | |
parent | c773adee3fda94e943ead1292330d25b28e10deb (diff) | |
download | ffmpeg-ee9794ed20528c2aa4c53cf67cb218bdce6e0485.tar.gz |
lavu/mem: fix potential int overflow and crash in av_dynarray_add()
Also extend documentation accordingly.
Diffstat (limited to 'libavutil/mem.h')
-rw-r--r-- | libavutil/mem.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/mem.h b/libavutil/mem.h index 861029a2f2..58c26b18ee 100644 --- a/libavutil/mem.h +++ b/libavutil/mem.h @@ -209,6 +209,8 @@ void av_freep(void *ptr); * In case of success, the pointer to the array is updated in order to * point to the new grown array, and the number pointed to by nb_ptr * is incremented. + * In case of failure, the array is freed, *tab_ptr is set to NULL and + * *nb_ptr is set to 0. * * @param tab_ptr pointer to the array to grow * @param nb_ptr pointer to the number of elements in the array |