From 766ed55c79e70a7dbca7393a3b7f838a3a231afe Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 7 Feb 2014 23:09:34 +0100 Subject: [PATCH] nfc-jewel: fix out-of-bounds array access Defect(s) Reported-by: Coverity Scan ** CID 1169884: Out-of-bounds read (OVERRUN) /utils/nfc-jewel.c: 186 in write_card() --- utils/jewel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/jewel.h b/utils/jewel.h index 18f39b9..2e529b4 100644 --- a/utils/jewel.h +++ b/utils/jewel.h @@ -200,7 +200,7 @@ typedef struct { } jewel_tag_blocks; typedef struct { - uint8_t abtData[112]; + uint8_t abtData[120]; } jewel_tag_data; typedef union {