summaryrefslogtreecommitdiffstats
path: root/m_option.h
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-06 23:22:51 +0000
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-06 23:22:51 +0000
commitfd11b253b9d1e6dea4c7d5e818d35ad291e7545e (patch)
treed9b491cc230a26af2fdd84610edb48dd246e2337 /m_option.h
parent71385409830459000759d50d041fc04893238837 (diff)
downloadmpv-fd11b253b9d1e6dea4c7d5e818d35ad291e7545e.tar.bz2
mpv-fd11b253b9d1e6dea4c7d5e818d35ad291e7545e.tar.xz
Fix crash on some DVDs
sprintf(tmp,"%.02x",(char)0xef); would print "ffffffef" instead of "ef", in this case this leads to local array buffer overflow and hard to trace stack corruption. The quick, easy & durty solution is to use (unsigned char) or (uint8_t) Fixes Bugzilla 860 & 845 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23728 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'm_option.h')
0 files changed, 0 insertions, 0 deletions