Mercurial > mplayer.hg
view stream/cache2.h @ 24427:50159082a80b
Check wLongsPerEntry before using it.
This fixes a potential crash for some values of it.
As a side effect it works around broken callocs with an integer
overflow vulnerability, but using MPlayer on such systems should
never be assumed to be safe!
author | reimar |
---|---|
date | Thu, 13 Sep 2007 15:18:57 +0000 |
parents | 3f0d00abc073 |
children | 3baf6a2283da |
line wrap: on
line source
#ifndef CACHE2_H #define CACHE2_H extern void cache_uninit(stream_t *s); #endif