From 5dd2dfae74aa40b2077821c63d21b1ba2216d952 Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 5 Feb 2018 03:16:10 +0000 Subject: [PATCH] CKSUM_DIGEST_STRING_LENGTH bounding didn't include full range of size_t and NUL ok millert krw tb --- bin/md5/crc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/md5/crc.h b/bin/md5/crc.h index d47eceb7841..b04c43fb707 100644 --- a/bin/md5/crc.h +++ b/bin/md5/crc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: crc.h,v 1.2 2014/03/20 22:03:56 tedu Exp $ */ +/* $OpenBSD: crc.h,v 1.3 2018/02/05 03:16:10 deraadt Exp $ */ /* * Copyright (c) 2004 Todd C. Miller @@ -17,7 +17,7 @@ */ #define CKSUM_DIGEST_LENGTH 4 -#define CKSUM_DIGEST_STRING_LENGTH (10 + 1 + 19) +#define CKSUM_DIGEST_STRING_LENGTH (10 + 1 + 20 + 1) typedef struct CKSUMContext { u_int32_t crc; -- 2.20.1