From 24d618ec178d96da9d482855da2ce1cdb0a871b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Novomesk=C3=BD?= Date: Wed, 4 Nov 2026 15:30:09 +0100 Subject: [PATCH] heif: remove unnecessary call heif_context_set_security_limits is not needed, new limits are applied instantly via modifications to the heif_limits object. --- src/imageformats/heif.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/imageformats/heif.cpp b/src/imageformats/heif.cpp index dee5968..1c0628f 100644 --- a/src/imageformats/heif.cpp +++ b/src/imageformats/heif.cpp @@ -906,13 +906,6 @@ bool HEIFHandler::ensureDecoder() #if LIBHEIF_HAVE_VERSION(1, 20, 0) heif_limits->max_total_memory = heif_limits->max_memory_block_size; #endif - err = heif_context_set_security_limits(ctx, heif_limits); - if (err.code) { - qCWarning(LOG_HEIFPLUGIN) << "heif_context_set_security_limits error:" << err.message; - heif_context_free(ctx); - m_parseState = ParseHeicError; - return false; - } } #endif