From 8e3d72e814f8267a8e5ceec437e2e1b28830aa18 Mon Sep 17 00:00:00 2001 From: ehdgks0627 Date: Thu, 3 Aug 2023 16:58:40 +0900 Subject: [PATCH] Add return statement when not enough data --- channels/geometry/client/geometry_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/channels/geometry/client/geometry_main.c b/channels/geometry/client/geometry_main.c index 6c2efb68c..ff53d31a9 100644 --- a/channels/geometry/client/geometry_main.c +++ b/channels/geometry/client/geometry_main.c @@ -112,6 +112,7 @@ static UINT32 geometry_read_RGNDATA(wLog* logger, wStream* s, UINT32 len, FREERD if (len / (4 * 4) < rgndata->nRectCount) { WLog_Print(logger, WLOG_ERROR, "not enough data for region rectangles"); + return ERROR_INVALID_DATA; } if (rgndata->nRectCount)