mkvtoolnix/tests/test-564segfaults_issue_1780_part_7.rb
Moritz Bunkus 814b6a000d HEVC parser: fix invalid memory access beyond the end of allocated space part 2
This is the same issue that 8a3c7197a2 was
trying to address, albeit incompletely.

The sps_t structure contains an array of 64 short_term_ref_pic_sets_t
elements. Therefore at most 63 may be added to the base pointer
short_term_ref_pic_sets for accessing one of those elements.

Fixes the following test cases of #1780:

explorer🆔000355,sig:11,src:000738,op:havoc,rep:4
explorer🆔000497,sig:11,src:001249,op:flip1,pos:101
2016-09-07 20:49:09 +02:00

15 lines
447 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_564egfaults_issue_1780_part_7
describe "mkvmerge / various test cases for segfaults collected in issue 1780 part 7"
dir = "data/segfaults-assertions/issue-1780"
# "HEVC parser: fix invalid memory access beyond the end of allocated space"
%w{
explorer:id:000355,sig:11,src:000738,op:havoc,rep:4
explorer:id:000497,sig:11,src:001249,op:flip1,pos:101
}.each do |file|
test_merge "#{dir}/#{file}", :exit_code => :error
end