[FFmpeg-trac] #1097(avcodec:open): prores_kostya: invalid read (was: prores_kostya: crash)

FFmpeg trac at avcodec.org
Sun Mar 18 22:21:02 CET 2012


#1097: prores_kostya: invalid read
------------------------------------+-----------------------------------
             Reporter:  ami_stuff   |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  prores      |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+-----------------------------------
Changes (by cehoyos):

 * status:  new => open
 * reproduced:  0 => 1
 * component:  undetermined => avcodec
 * version:  unspecified => git-master
 * keywords:   => prores


Comment:

 {{{
 $ valgrind ffmpeg_g -i 600.png -vcodec prores_kostya out.mov
 ffmpeg version N-38873-gd19d52d Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Mar 18 2012 21:52:27 with gcc 4.3.2
   configuration: --cc=/usr/local/gcc-4.3.2/bin/gcc --enable-gpl --enable-
 libspee
 x
   libavutil      51. 42.100 / 51. 42.100
   libavcodec     54. 10.100 / 54. 10.100
   libavformat    54.  2.100 / 54.  2.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 65.101 /  2. 65.101
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  7.100 /  0.  7.100
   libpostproc    52.  0.100 / 52.  0.100
 Input #0, image2, from '600.png':
   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: png, rgb24, 600x412, 25 tbr, 25 tbn, 25 tbc
 Incompatible pixel format 'rgb24' for codec 'prores_kostya', auto-
 selecting form
 at 'yuv444p10le'
 [buffer @ 0x452c9c0] w:600 h:412 pixfmt:rgb24 tb:1/1000000 sar:0/1
 sws_param:
 [buffersink @ 0x451a6c0] auto-inserting filter 'auto-inserted scale 0'
 between t
 he filter 'src' and the filter 'out'
 [scale @ 0x451ab60] w:600 h:412 fmt:rgb24 sar:0/1 -> w:600 h:412
 fmt:yuv444p10le
  sar:0/1 flags:0x4
 Output #0, mov, to 'out.mov':
   Metadata:
     encoder         : Lavf54.2.100
     Stream #0:0: Video: prores (apcn / 0x6E637061), yuv444p10le, 600x412,
 q=2-31
 , 200 kb/s, 25 tbn, 25 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (png -> prores_kostya)
 Press [q] to stop, [?] for help
 ==17000== Invalid read of size 2
 ==17000==    at 0x84D6A5A: prores_fdct_c (proresdsp.c:64)
 ==17000==  Address 0x488A420 is not stack'd, malloc'd or (recently) free'd
 ==17000==
 ==17000== Process terminating with default action of signal 11 (SIGSEGV)
 ==17000==  Access not within mapped region at address 0x488A420
 ==17000==    at 0x84D6A5A: prores_fdct_c (proresdsp.c:64)
 ==17000==
 ==17000== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 3 from 1)
 ==17000== malloc/free: in use at exit: 3,060,894 bytes in 115 blocks.
 ==17000== malloc/free: 401 allocs, 286 frees, 4,374,580 bytes allocated.
 ==17000== For counts of detected errors, rerun with: -v
 ==17000== searching for pointers to 115 not-freed blocks.
 ==17000== checked 8,974,180 bytes.
 ==17000==
 ==17000== LEAK SUMMARY:
 ==17000==    definitely lost: 0 bytes in 0 blocks.
 ==17000==      possibly lost: 0 bytes in 0 blocks.
 ==17000==    still reachable: 3,060,894 bytes in 115 blocks.
 ==17000==         suppressed: 0 bytes in 0 blocks.
 ==17000== Rerun with --leak-check=full to see details of leaked memory.
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1097#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list