Mercurial > mplayer.hg
view tremor/FILES @ 23708:1fb5f0b13a1a
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
author | iive |
---|---|
date | Fri, 06 Jul 2007 23:22:51 +0000 |
parents | e9437f0553d1 |
children |
line wrap: on
line source
On the origin of the files: ========================== The code is a mixture of Tremor SVN Trunk r3989 (API, parser, part of math code) and December 2004 Trunk fetched from xiph.org's Subversion (mostly math). SVN Trunk r3989: ----------- backends.h block.c codebook.c codebook.h codec_internal.h config_types.h info.c ivorbiscodec.h lsp_lookup.h mapping0.c os.h registry.c registry.h res012.c sharedbook.c synthesis.c Dec 2004 SVN Trunk: ------------------ asm_arm.h COPYING floor0.c floor1.c mdct.c mdct.h mdct_lookup.h misc.h os_types.h window.c window.h window_lookup.h libogg 1.1.2: ------------ bitwise.c framing.c ogg.h Additional MPlayer-specific changes are contained in tremor.diff. This file should be updated with each modification of the Tremor code.