From 006a7d9975daea025eb809b1ed5b33aceebc083d Mon Sep 17 00:00:00 2001 From: Lawrence Lee <45837045+Lawrence37@users.noreply.github.com> Date: Sat, 18 Feb 2023 18:16:12 -0800 Subject: [PATCH] Fix CodeQL alert --- rtengine/dcp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/dcp.cc b/rtengine/dcp.cc index 29d3625a2..76dfeff5c 100644 --- a/rtengine/dcp.cc +++ b/rtengine/dcp.cc @@ -773,7 +773,7 @@ private: const std::size_t saved_position = std::ftell(file_) + 4; // Load value field (possibly seek before) - const std::size_t value_size = tag.count * getTypeSize(tag.type); + const std::size_t value_size = static_cast(tag.count) * getTypeSize(tag.type); if (value_size > 4) { if (std::fseek(file_, get4(), SEEK_SET) == -1) {