From 34fd1662f8965f9892d3cebd1e9cdef22dd73fd0 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Thu, 8 Jul 2021 23:56:32 +0300 Subject: [PATCH] Disable the use of memory-mapped files by default when opening tiff files. --- src/t4_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/t4_tx.c b/src/t4_tx.c index 47353b62..280709bd 100644 --- a/src/t4_tx.c +++ b/src/t4_tx.c @@ -738,7 +738,7 @@ static int get_tiff_total_pages(t4_tx_state_t *s) static int open_tiff_input_file(t4_tx_state_t *s, const char *file) { - if ((s->tiff.tiff_file = TIFFOpen(file, "r")) == NULL) + if ((s->tiff.tiff_file = TIFFOpen(file, "rm")) == NULL) return -1; return 0; }