From 961137ea4c14747704c96715bb9f469d6f53bd8b Mon Sep 17 00:00:00 2001 From: Oleg Sikorskiy Date: Tue, 16 Mar 2021 23:47:35 +0300 Subject: [PATCH] LibGfx: Don't truncate macroblock indices in JPG decoder. --- Userland/Libraries/LibGfx/JPGLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/JPGLoader.cpp b/Userland/Libraries/LibGfx/JPGLoader.cpp index 2597c7cdf8..8a219ad395 100644 --- a/Userland/Libraries/LibGfx/JPGLoader.cpp +++ b/Userland/Libraries/LibGfx/JPGLoader.cpp @@ -288,7 +288,7 @@ static Optional get_next_symbol(HuffmanStreamState& hstream, const HuffmanTa * macroblocks that share the chrominance data. Next two iterations (assuming that * we are dealing with three components) will fill up the blocks with chroma data. */ -static bool build_macroblocks(JPGLoadingContext& context, Vector& macroblocks, u8 hcursor, u8 vcursor) +static bool build_macroblocks(JPGLoadingContext& context, Vector& macroblocks, u32 hcursor, u32 vcursor) { for (auto it = context.components.begin(); it != context.components.end(); ++it) { ComponentSpec& component = it->value;