From 8ac7e849cb8df7ace99acf433c560597802b5672 Mon Sep 17 00:00:00 2001 From: Raymond Toy <toy.raymond@gmail.com> Date: Sat, 4 Nov 2017 21:31:06 -0700 Subject: [PATCH] Increase buffer size to prevent writing past the end The char buffer size is potentially too small and it's possible to write past the end of the buffer with a large integer. Fixes a compiler warning. --- src/lisp/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lisp/print.c b/src/lisp/print.c index 1898fee24..8d79486d2 100644 --- a/src/lisp/print.c +++ b/src/lisp/print.c @@ -354,7 +354,7 @@ print_struct(lispobj obj) { struct instance *instance = (struct instance *) PTR(obj); int i; - char buffer[16]; + char buffer[32]; print_obj("type: ", ((struct instance *) PTR(obj))->slots[0]); for (i = 1; i < HeaderValue(instance->header); i++) { -- GitLab