mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-29 14:27:42 +00:00
03cabbec79
underflow.mkv is incomplete. libmatroska leaves part of the very last block buffer uninitialized as it cannot read the whole buffer. This caused frequent failures in this test -- uninitialized memory is undefined behaviour. Therefore only use mkvinfo's summary output up to but excluding the very last line.
15 lines
562 B
Ruby
15 lines
562 B
Ruby
#!/usr/bin/ruby -w
|
|
|
|
# underflow.mkv is incomplete. libmatroska leaves part of the very
|
|
# last block buffer uninitialized as it cannot read the whole
|
|
# buffer. This caused frequent failures in this test -- uninitialized
|
|
# memory is undefined behaviour. Therefore only use mkvinfo's summary
|
|
# output up to but excluding the very last line.
|
|
|
|
describe "mkvmerge / read buffer integer underflow on incomplete files"
|
|
test "data/mkv/underflow.mkv" do
|
|
merge "data/mkv/underflow.mkv"
|
|
info "-s #{tmp}", :output => "| sed -e '$d' > #{tmp}-1"
|
|
hash_file "#{tmp}-1"
|
|
end
|