From 86471c88e0727c0e85766b6da8c088c836cc3105 Mon Sep 17 00:00:00 2001 From: Ingo Weyrich Date: Mon, 24 Aug 2020 14:04:47 +0200 Subject: [PATCH] Canon EOS R5 CR3 pegs cpu at 100% with no GUI, #5882 --- rtengine/canon_cr3_decoder.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rtengine/canon_cr3_decoder.cc b/rtengine/canon_cr3_decoder.cc index f9850189c..51beb66f3 100644 --- a/rtengine/canon_cr3_decoder.cc +++ b/rtengine/canon_cr3_decoder.cc @@ -602,7 +602,9 @@ int DCraw::parseCR3( relpos_inBox += lTag; } } - + if (!szItem) { + goto fin; + } relpos_inDir += szItem; }