Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#73 closed defect (fixed)

Invalid reads in libswscale (crash on Windows)

Reported by: cehoyos Owned by: michael
Priority: important Component: swscale
Version: git Keywords: roundup
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

(issue 2366)

$ valgrind ffmpeg_g -i tpa-6-6ed943b7cbf246b6-9c63db66c417cee.tmp00000000%1d.bmp out.mp4

FFmpeg version git-N-29196-ge61b83d, Copyright (c) 2000-2011 the FFmpeg developers
  built on Apr 19 2011 19:44:16 with gcc 4.4.5
  configuration: --cc='/usr/local/gcc-4.4.5/bin/gcc -m32' --disable-asm
  libavutil    50. 40. 1 / 50. 40. 1
  libavcodec   52.120. 0 / 52.120. 0
  libavformat  52.108. 0 / 52.108. 0
  libavdevice  52.  4. 0 / 52.  4. 0
  libavfilter   1. 79. 1 /  1. 79. 1
  libswscale    0. 13. 0 /  0. 13. 0
Input #0, image2, from 'tpa-6-6ed943b7cbf246b6-9c63db66c417cee.tmp00000000%1d.bmp':
  Duration: 00:00:00.20, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: bmp, bgr24, 879x781, 25 fps, 25 tbr, 25 tbn, 25 tbc
Incompatible pixel format 'bgr24' for codec 'mpeg4', auto-selecting format 'yuv420p'
[buffer @ 0x5c34d50] w:879 h:781 pixfmt:bgr24
[ffsink @ 0x5c35110] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0x5c357e0] w:879 h:781 fmt:bgr24 -> w:879 h:781 fmt:yuv420p flags:0x4
Output #0, mp4, to 'out.mp4':
  Metadata:
    encoder         : Lavf52.108.0
    Stream #0.0: Video: mpeg4, yuv420p, 879x781, q=2-31, 200 kb/s, 25 tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
==30744== Invalid read of size 1
==30744==    at 0x85B170E: rgb24toyv12_C (rgb2rgb_template.c:2281)
==30744==  Address 0x78ee680 is 0 bytes after a block of size 2,061,856 alloc'd
==30744==    at 0x4CA8E9E: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==30744==    by 0x4CA8EFB: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==30744==    by 0x85BB940: av_malloc (mem.c:83)

==30744== Invalid read of size 1
==30744==    at 0x85B16E0: rgb24toyv12_C (rgb2rgb_template.c:2274)
==30744==  Address 0x78ee683 is 3 bytes after a block of size 2,061,856 alloc'd
==30744==    at 0x4CA8E9E: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==30744==    by 0x4CA8EFB: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==30744==    by 0x85BB940: av_malloc (mem.c:83)

...

Attachments (1)

images.zip (403.6 KB) - added by cehoyos 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by cehoyos

comment:1 Changed 6 years ago by michael

  • Resolution set to fixed
  • Status changed from new to closed

Thats a duplicate of some other crash (dont remember), and should be fixed by 9a5624a0f

comment:2 Changed 4 years ago by cehoyos

  • Keywords roundup added
Note: See TracTickets for help on using tickets.