diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-11-09 15:47:47 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-11-09 15:47:47 +0000 |
commit | 41ee2b0d77b1d890bc284972aaf5d8935a0c1893 (patch) | |
tree | 52687d89b7abc1a15270255bf106d31f2c608e21 /monitor.c | |
parent | 9bda7ae4c695a0ff78e570151c067a62c5e44de6 (diff) |
- markus@cvs.openbsd.org 2002/11/05 19:45:20
[monitor.c]
handle overflows for size_t larger than u_int; siw@goneko.de, bug #425
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -25,7 +25,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: monitor.c,v 1.29 2002/09/26 11:38:43 markus Exp $"); +RCSID("$OpenBSD: monitor.c,v 1.30 2002/11/05 19:45:20 markus Exp $"); #include <openssl/dh.h> @@ -1551,7 +1551,7 @@ mm_get_keystate(struct monitor *pmonitor) void * mm_zalloc(struct mm_master *mm, u_int ncount, u_int size) { - size_t len = size * ncount; + size_t len = (size_t) size * ncount; void *address; if (len == 0 || ncount > SIZE_T_MAX / size) |