diff --git a/tests/resources/test_3727.pdf b/tests/resources/test_3727.pdf new file mode 100644 index 000000000..b12bf9b47 Binary files /dev/null and b/tests/resources/test_3727.pdf differ diff --git a/tests/test_general.py b/tests/test_general.py index 4ce3ae1aa..9c870b7d5 100644 --- a/tests/test_general.py +++ b/tests/test_general.py @@ -1270,3 +1270,11 @@ def test_3654(): wt = pymupdf.TOOLS.mupdf_warnings() assert wt == 'dropping unclosed output' +def test_3727(): + if pymupdf.mupdf_version_tuple < (1, 24, 9): + print('test_3727(): not running because known to segv: {pymupdf.mupdf_version=}') + return + path = os.path.normpath(f'{__file__}/../../tests/resources/test_3727.pdf') + doc = pymupdf.open(path) + for page in doc: + page.get_pixmap(matrix = pymupdf.Matrix(2,2))