[FFmpeg-trac] #2229(build system:new): sws_scale overwrites out[0][-1] on ppc (was: memalign_hack is not auto-detected anymore for ppc OSX)

FFmpeg trac at avcodec.org
Thu Feb 7 00:03:19 CET 2013


#2229: sws_scale overwrites out[0][-1] on ppc
-------------------------------------+-------------------------------------
             Reporter:  cehoyos      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  build
              Version:  git-master   |  system
             Keywords:  regression   |               Resolution:
  ppc                                |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by cehoyos):

 The problem is that before sws_scale() gets called from scale_slice(),
 out[0][-1] contains the offset for mem_align_hack from the aligned to the
 originally allocated position. This value gets overwritten in sws_scale()
 leading to an invalid address being used later for free().

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


More information about the FFmpeg-trac mailing list