From c2bc7aa51698dfb793c8d3544fa6ecd7d257dcb4 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Fri, 29 Nov 2024 00:21:25 -0500 Subject: [PATCH] [BugFix] lib/printcell_helper.c vp buffer ovfl #2 found another place where vp width could exceed the buffer Change-Id: I85d806cc58955b44327bd47c6a08dc7e556722c0 --- apps/plugins/lib/printcell_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/plugins/lib/printcell_helper.c b/apps/plugins/lib/printcell_helper.c index 43cbabef06..51f806fd45 100644 --- a/apps/plugins/lib/printcell_helper.c +++ b/apps/plugins/lib/printcell_helper.c @@ -406,6 +406,8 @@ static void printcell_listdraw_fn(struct list_putlineinfo_t *list_info) if (colxw > 0) /* draw selector for first column (title or items) */ { vp->width += COLUMN_ENDLEN + 1; + if (vp->width > vp_w) + vp->width = vp_w; draw_selector(display, linedes, selected_flag, 0, separator, nx, y, nw, linedes->height); }