[BugFix] lib/printcell_helper.c vp buffer ovfl #2

found another place where vp width could exceed the buffer

Change-Id: I85d806cc58955b44327bd47c6a08dc7e556722c0
This commit is contained in:
William Wilgus 2024-11-29 00:21:25 -05:00 committed by William Wilgus
parent b1e70db6e7
commit c2bc7aa516

View file

@ -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) */ if (colxw > 0) /* draw selector for first column (title or items) */
{ {
vp->width += COLUMN_ENDLEN + 1; vp->width += COLUMN_ENDLEN + 1;
if (vp->width > vp_w)
vp->width = vp_w;
draw_selector(display, linedes, selected_flag, 0, draw_selector(display, linedes, selected_flag, 0,
separator, nx, y, nw, linedes->height); separator, nx, y, nw, linedes->height);
} }