Skip to content
Snippets Groups Projects
Commit 8ac7e849 authored by Raymond Toy's avatar Raymond Toy
Browse files

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.
parent de68cb52
No related branches found
No related tags found
No related merge requests found
...@@ -354,7 +354,7 @@ print_struct(lispobj obj) ...@@ -354,7 +354,7 @@ print_struct(lispobj obj)
{ {
struct instance *instance = (struct instance *) PTR(obj); struct instance *instance = (struct instance *) PTR(obj);
int i; int i;
char buffer[16]; char buffer[32];
print_obj("type: ", ((struct instance *) PTR(obj))->slots[0]); print_obj("type: ", ((struct instance *) PTR(obj))->slots[0]);
for (i = 1; i < HeaderValue(instance->header); i++) { for (i = 1; i < HeaderValue(instance->header); i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment