• Janne Grunau's avatar
    fix skip_mode_params parsing if enable_order_hint == 0 · 6ac49461
    Janne Grunau authored
    Fix following ubsan error in #68:
    ../src/env.h:296:24: runtime error: shift exponent -1 is negative
    [Detaching after fork from child process 22253]
        #0 0x7ffff76ad6f9 in get_poc_diff /home/janne/src/dav1d/build-usan/../src/env.h:296:24
        #1 0x7ffff76ad6f9 in parse_frame_hdr /home/janne/src/dav1d/build-usan/../src/obu.c:757
        #2 0x7ffff7696491 in dav1d_parse_obus /home/janne/src/dav1d/build-usan/../src/obu.c:1023:20
        #3 0x7ffff7921c7d in dav1d_decode /home/janne/src/dav1d/build-usan/../src/lib.c:193:20
        #4 0x424869 in main /home/janne/src/dav1d/build-usan/../tools/dav1d.c:108:20
        #5 0x7ffff63dfae6 in __libc_start_main (/lib64/libc.so.6+0x21ae6)
        #6 0x403489 in _start (/home/janne/src/dav1d/build-usan/tools/dav1d+0x403489)
    
    I can't reproduce the ubsan error in the issue.
    6ac49461
Name
Last commit
Last update
..
arm Loading commit data...
ext/x86 Loading commit data...
win32 Loading commit data...
x86 Loading commit data...
cdef.c Loading commit data...
cdef.h Loading commit data...
cdef_apply.c Loading commit data...
cdef_apply.h Loading commit data...
cdf.c Loading commit data...
cdf.h Loading commit data...
cpu.c Loading commit data...
cpu.h Loading commit data...
data.c Loading commit data...
data.h Loading commit data...
dav1d.rc.in Loading commit data...
decode.c Loading commit data...
decode.h Loading commit data...
dequant_tables.c Loading commit data...
dequant_tables.h Loading commit data...
env.h Loading commit data...
getbits.c Loading commit data...
getbits.h Loading commit data...
internal.h Loading commit data...
intra_edge.c Loading commit data...
intra_edge.h Loading commit data...
ipred.c Loading commit data...
ipred.h Loading commit data...
ipred_prepare.c Loading commit data...
ipred_prepare.h Loading commit data...
itx.c Loading commit data...
itx.h Loading commit data...
itx_1d.c Loading commit data...
levels.h Loading commit data...
lf_apply.c Loading commit data...
lf_apply.h Loading commit data...
lf_mask.c Loading commit data...
lf_mask.h Loading commit data...
lib.c Loading commit data...
loopfilter.c Loading commit data...
loopfilter.h Loading commit data...
looprestoration.c Loading commit data...
looprestoration.h Loading commit data...
lr_apply.c Loading commit data...
lr_apply.h Loading commit data...
mc.c Loading commit data...
mc.h Loading commit data...
meson.build Loading commit data...
msac.c Loading commit data...
msac.h Loading commit data...
obu.c Loading commit data...
obu.h Loading commit data...
picture.c Loading commit data...
picture.h Loading commit data...
qm.c Loading commit data...
qm.h Loading commit data...
recon.c Loading commit data...
recon.h Loading commit data...
ref.c Loading commit data...
ref.h Loading commit data...
ref_mvs.c Loading commit data...
ref_mvs.h Loading commit data...
scan.c Loading commit data...
scan.h Loading commit data...
tables.c Loading commit data...
tables.h Loading commit data...
thread.h Loading commit data...
thread_data.h Loading commit data...
thread_task.c Loading commit data...
thread_task.h Loading commit data...
warpmv.c Loading commit data...
warpmv.h Loading commit data...
wedge.c Loading commit data...
wedge.h Loading commit data...