https://github.com/eVRydayVR/ffmpeg-unwarpvr
Revision a31be9dd065bc294c214dfaad9abd08fe3919569 authored by Xi Wang on 23 January 2013, 01:58:07 UTC, committed by Michael Niedermayer on 20 March 2013, 21:02:28 UTC
The check `start + res < start' is broken since pointer overflow is undefined behavior in C. Many compilers such as gcc/clang optimize away this check. Use `res > end - start' instead. Also change `res' to unsigned int to avoid signed left-shift overflow. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 2f014567cfd63e58156f60666f1a61ba147276ab) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
1 parent b63dbe2
Tip revision: a31be9dd065bc294c214dfaad9abd08fe3919569 authored by Xi Wang on 23 January 2013, 01:58:07 UTC
rtpenc: fix overflow checking in avc_mp4_find_startcode()
rtpenc: fix overflow checking in avc_mp4_find_startcode()
Tip revision: a31be9d
File | Mode | Size |
---|---|---|
doc | ||
libavcodec | ||
libavdevice | ||
libavfilter | ||
libavformat | ||
libavresample | ||
libavutil | ||
libpostproc | ||
libswresample | ||
libswscale | ||
mt-work | ||
presets | ||
tests | ||
tools | ||
.gitignore | -rw-r--r-- | 817 bytes |
COPYING.GPLv2 | -rw-r--r-- | 17.7 KB |
COPYING.GPLv3 | -rw-r--r-- | 34.3 KB |
COPYING.LGPLv2.1 | -rw-r--r-- | 25.9 KB |
COPYING.LGPLv3 | -rw-r--r-- | 7.5 KB |
CREDITS | -rw-r--r-- | 1.0 KB |
Changelog | -rw-r--r-- | 33.3 KB |
Doxyfile | -rw-r--r-- | 67.2 KB |
INSTALL | -rw-r--r-- | 564 bytes |
LICENSE | -rw-r--r-- | 2.2 KB |
MAINTAINERS | -rw-r--r-- | 19.9 KB |
Makefile | -rw-r--r-- | 4.8 KB |
README | -rw-r--r-- | 309 bytes |
RELEASE | -rw-r--r-- | 7 bytes |
VERSION | -rw-r--r-- | 7 bytes |
arch.mak | -rw-r--r-- | 523 bytes |
cmdutils.c | -rw-r--r-- | 39.2 KB |
cmdutils.h | -rw-r--r-- | 12.1 KB |
cmdutils_common_opts.h | -rw-r--r-- | 1.5 KB |
common.mak | -rw-r--r-- | 3.2 KB |
configure | -rwxr-xr-x | 118.3 KB |
ffmpeg.c | -rw-r--r-- | 218.4 KB |
ffplay.c | -rw-r--r-- | 108.1 KB |
ffprobe.c | -rw-r--r-- | 59.9 KB |
ffserver.c | -rw-r--r-- | 155.1 KB |
library.mak | -rw-r--r-- | 3.3 KB |
version.sh | -rwxr-xr-x | 1.4 KB |
Computing file changes ...