[MPlayer-dev-eng] PATCH: Certain Real files plays improperly.

Joakim Plate joakim.plate at ecce.se
Sun Feb 27 13:43:56 CET 2005


Hi,

This patch fixes a potential data corruption in the index table of real
files. 

demux_real.c:add_index_item() tries to grow the index table on demand if it
exceeds current dimension. It grows it by halv the current size. However on
first call to add_index_item, index_malloc_size is 0 even thou the
index_table_size can be larger since it has been allocated at another point
where index_malloc_size hasn't been set. This leads to setting
index_malloc_size to 2048. If now index_table_size is larger 2048 already,
realloc is called with a size which is smalled than current, and last part
of that index table is lost.

Regards
elupus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demux_real.c.patch
Type: application/octet-stream
Size: 950 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050227/d0c48ddd/attachment.obj>


More information about the MPlayer-dev-eng mailing list