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=cf584ad95e93013b61ce978fa686588d3299f62e;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;