From: Ben Pfaff Date: Wed, 15 Dec 2004 05:53:19 +0000 (+0000) Subject: Comment. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b36c59160d9fd64db9c5733c35cba98fa160ec2;p=pintos-anon Comment. --- diff --git a/src/threads/malloc.c b/src/threads/malloc.c index 0cb5f9d..8e6b459 100644 --- a/src/threads/malloc.c +++ b/src/threads/malloc.c @@ -161,7 +161,7 @@ calloc (size_t a, size_t b) void *p; size_t size; - /* Calculate block size. */ + /* Calculate block size and make sure it fits in size_t. */ size = a * b; if (size < a || size < b) return NULL;