Blame tests/bugfixes/redmine/test_issue_447.py

Packit Service 21b5d1
# -*- coding: utf-8 -*-
Packit Service 21b5d1
Packit Service 21b5d1
import system_tests
Packit Service 21b5d1
Packit Service 21b5d1
Packit Service 21b5d1
class BufferOverflowInSscanf(metaclass=system_tests.CaseMeta):
Packit Service 21b5d1
    """
Packit Service 21b5d1
    This requires some sort of memchecker, either valgrind or ASAN.
Packit Service 21b5d1
    """
Packit Service 21b5d1
Packit Service 21b5d1
    url = "http://dev.exiv2.org/issues/447"
Packit Service 21b5d1
Packit Service 21b5d1
    filename = "$data_path/exiv2-bug447.jpg"
Packit Service 21b5d1
    commands = ["$exiv2 -u -pi $filename"]
Packit Service 21b5d1
Packit Service 21b5d1
    stdout = ["""Iptc.Application2.Caption                    String      0  
Packit Service 21b5d1
Iptc.Application2.DateCreated                Date        8  2005-08-09
Packit Service 21b5d1
Iptc.Application2.TimeCreated                Time       11  01:28:31-07:00
Packit Service 21b5d1
"""]
Packit Service 21b5d1
    stderr = ["""Error: Directory NikonPreview with 8224 entries considered invalid; not read.
Packit Service 21b5d1
Warning: Directory Photo, entry 0x9286 has unknown Exif (TIFF) type 14; setting type size 1.
Packit Service 21b5d1
"""]
Packit Service 21b5d1
    retval = [0]