• Stefano Sabatini's avatar
    vf_unsharp: fix out-of-buffer read · 63b61d55
    Stefano Sabatini authored
    In apply_unsharp(), when y is >= height, prevent out-of-buffer reading
    from src, read from the last buffer line in src2 instead.
    
    The check was implemented in the original unsharp libmpcodecs code and
    lost in the port.
    
    This also fixes output discrepancy between the two filters.
    63b61d55
Name
Last commit
Last update
..
libmpcodecs Loading commit data...
x86 Loading commit data...
Makefile Loading commit data...
af_aformat.c Loading commit data...
af_anull.c Loading commit data...
allfilters.c Loading commit data...
asink_abuffer.c Loading commit data...
asink_abuffer.h Loading commit data...
asink_anullsink.c Loading commit data...
asrc_anullsrc.c Loading commit data...
avcodec.c Loading commit data...
avcodec.h Loading commit data...
avfilter.c Loading commit data...
avfilter.h Loading commit data...
avfiltergraph.c Loading commit data...
avfiltergraph.h Loading commit data...
defaults.c Loading commit data...
drawutils.c Loading commit data...
drawutils.h Loading commit data...
formats.c Loading commit data...
gradfun.h Loading commit data...
graphparser.c Loading commit data...
internal.h Loading commit data...
libavfilter.v Loading commit data...
vf_aspect.c Loading commit data...
vf_blackframe.c Loading commit data...
vf_boxblur.c Loading commit data...
vf_copy.c Loading commit data...
vf_crop.c Loading commit data...
vf_cropdetect.c Loading commit data...
vf_delogo.c Loading commit data...
vf_drawbox.c Loading commit data...
vf_drawtext.c Loading commit data...
vf_fade.c Loading commit data...
vf_fieldorder.c Loading commit data...
vf_fifo.c Loading commit data...
vf_format.c Loading commit data...
vf_frei0r.c Loading commit data...
vf_gradfun.c Loading commit data...
vf_hflip.c Loading commit data...
vf_hqdn3d.c Loading commit data...
vf_libopencv.c Loading commit data...
vf_lut.c Loading commit data...
vf_mp.c Loading commit data...
vf_null.c Loading commit data...
vf_overlay.c Loading commit data...
vf_pad.c Loading commit data...
vf_pixdesctest.c Loading commit data...
vf_scale.c Loading commit data...
vf_select.c Loading commit data...
vf_setpts.c Loading commit data...
vf_settb.c Loading commit data...
vf_showinfo.c Loading commit data...
vf_slicify.c Loading commit data...
vf_split.c Loading commit data...
vf_transpose.c Loading commit data...
vf_unsharp.c Loading commit data...
vf_vflip.c Loading commit data...
vf_yadif.c Loading commit data...
vsink_buffer.c Loading commit data...
vsink_buffer.h Loading commit data...
vsink_nullsink.c Loading commit data...
vsrc_buffer.c Loading commit data...
vsrc_buffer.h Loading commit data...
vsrc_color.c Loading commit data...
vsrc_movie.c Loading commit data...
vsrc_mptestsrc.c Loading commit data...
vsrc_nullsrc.c Loading commit data...
vsrc_testsrc.c Loading commit data...
yadif.h Loading commit data...