Opened 5 weeks ago

#2433 new defect

Out of bounds write

Reported by: wififreedom Owned by: beastd
Priority: normal Component: undetermined
Version: unspecified Severity: blocker
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Detected while analyzing ​https://trac.mplayerhq.hu/ticket/2432

Out of bounds write detected with "-vo jpeg".

mplayer svn revision r38688.

How to reproduce:

+ valgrind /home/user/repos/svn/mplayer/mplayer -vo jpeg -vobsub sub-84 -vobsubid 0 subtest.mp4
==209318== Invalid write of size 8
==209318==    at 0x4CFC9D7: ??? (in /home/user/repos/svn/mplayer/mplayer)
==209318==    by 0x1F: ???
==209318==    by 0x5: ???
==209318==  Address 0x96517c0 is 8 bytes after a block of size 24 alloc'd
==209318==    at 0x7044D09: posix_memalign (vg_replace_malloc.c:2232)
==209318==    by 0x4D2A3FE: av_malloc (mem.c:107)
==209318==    by 0x41E3E62: mp_image_alloc_planes (mp_image.c:59)
==209318==    by 0x41E8DF7: vf_get_image (vf.c:419)
==209318==    by 0x420C793: put_image (vf_scale.c:473)
==209318==    by 0x41E2DCF: filter_video (dec_video.c:500)
==209318==    by 0x41774FD: generate_video_frame (mplayer.c:1809)
==209318==    by 0x41774FD: update_video (mplayer.c:2525)
==209318==    by 0x416BA63: main (mplayer.c:3820)
==209318==

I will attach the script and small C program that produced this.

Attachments (2)

subtest.c​ (5.5 KB ) - added by wififreedom 5 weeks ago.
C program to generate the .sub and .idx files
run.sh​ (574 bytes ) - added by wififreedom 5 weeks ago.
Script to build the C program and run valgrind with the test output.

Download all attachments as: .zip

Change History (2)

by wififreedom, 5 weeks ago

Attachment: subtest.c​ added

C program to generate the .sub and .idx files

by wififreedom, 5 weeks ago

Attachment: run.sh​ added

Script to build the C program and run valgrind with the test output.

Note: See TracTickets for help on using tickets.