File: test_issue_2345.py

package info (click to toggle)
exiv2 0.28.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 109,208 kB
  • sloc: cpp: 77,571; python: 9,474; javascript: 237; makefile: 190; sh: 172; ansic: 51; sed: 16
file content (13 lines) | stat: -rw-r--r-- 467 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: utf-8 -*-

from system_tests import CaseMeta, check_no_ASAN_UBSAN_errors

class issue_2345_QuickTimeVideo_tagDecoder_buffer_overflow(metaclass=CaseMeta):
    url      = "https://github.com/Exiv2/exiv2/issues/2345"
    filename = "$data_path/issue_2345_poc.mp4"
    commands = ["$exiv2 -q -pa $filename"]
    retval   = [1]
    stderr   = ["""$exiv2_exception_message $filename:
$kerCorruptedMetadata
"""]
    compare_stdout = check_no_ASAN_UBSAN_errors