From 68fdae09c3691fc466e16852f9a6cb0a51dd3db3 Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Fri, 6 Apr 2018 10:50:19 +0100 Subject: [PATCH] Prevent possible buffer overrun Spotted by Milton Neal --- backend/mailmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/mailmark.c b/backend/mailmark.c index 2d805664..25a91ecb 100644 --- a/backend/mailmark.c +++ b/backend/mailmark.c @@ -138,7 +138,7 @@ int mailmark(struct zint_symbol *symbol, unsigned char source[], int length) { short int b[112]; short int temp[112]; short int cdv[112]; - unsigned char data[25]; + unsigned char data[26]; int data_top, data_step; unsigned char check[7]; short int extender[27];