annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23689
3f0d00abc073 Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents: 19808
diff changeset
1 #ifndef CACHE2_H
3f0d00abc073 Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents: 19808
diff changeset
2 #define CACHE2_H
19808
5385740067a1 * remove extern definitions of functions in .c files
attila
parents:
diff changeset
3
5385740067a1 * remove extern definitions of functions in .c files
attila
parents:
diff changeset
4 extern void cache_uninit(stream_t *s);
5385740067a1 * remove extern definitions of functions in .c files
attila
parents:
diff changeset
5
5385740067a1 * remove extern definitions of functions in .c files
attila
parents:
diff changeset
6 #endif