From 09e241fb1271021e3615512debd3136891547562 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 27 Jul 2017 16:07:50 -0300 Subject: Security review: check results of snprintf. Calls marked with xSnprintf shouldn't fail. Abort program cleanly if any of them does. --- ListItem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ListItem.c') diff --git a/ListItem.c b/ListItem.c index c9e906fa..05c5c0b3 100644 --- a/ListItem.c +++ b/ListItem.c @@ -39,7 +39,7 @@ static void ListItem_display(Object* cast, RichString* out) { /* int len = strlen(this->value)+1; char buffer[len+1]; - snprintf(buffer, len, "%s", this->value); + xSnprintf(buffer, len, "%s", this->value); */ if (this->moving) { RichString_write(out, CRT_colors[DEFAULT_COLOR], -- cgit v1.2.3