• Marvin Scholz's avatar
    dav1d: Fix theoretical invalid pointer dereference · ba08e37c
    Marvin Scholz authored
    Fix a theoretical bug found by the clang static analyzer:
    In theory num_muxers could be smaller than res, never evaluating the
    loop (as the condition would be false) but not satisfying the
    i == num_muxers case, so proceeding and dereferencing the never
    initialized impl pointer.
    
    Fixing this is simple: Changed the num_muxers and index variables
    to unsigned so num_muxers can never be smaller than i.
    ba08e37c
Name
Last commit
Last update
..
md5.c Loading commit data...
muxer.h Loading commit data...
null.c Loading commit data...
output.c Loading commit data...
output.h Loading commit data...
y4m2.c Loading commit data...
yuv.c Loading commit data...