mkvtoolnix/tests/test-710fuzzying.rb
Moritz Bunkus 3a65d2e743
h.264/AVC and h.265/HEVC readers: reject invalid pixel dimensions
Values <= 0 lead to failed assertions in libEBML later as the video
pixel dimension elements aren't set. Those values don't make sense
anyway.

Found by fuzzying.
2020-09-21 17:23:18 +02:00

15 lines
341 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_710fuzzying
describe "mkvmerge / issues found by fuzzying"
Dir["data/segfaults-assertions/fuzzying/0001-ac3/**/id*"].each do |file|
exit_code = file.gsub(%r{.*/([012])/.*}, '\1').to_i
if exit_code < 2
test_merge file, :exit_code => exit_code
else
test_identify file, :exit_code => exit_code
end
end