[libnfc] push by yob...@gmail.com - nfc-jewel: fix out-of-bounds array access... on 2014-02-07 22:12 GMT

1 view
Skip to first unread message

lib...@googlecode.com

unread,
Feb 7, 2014, 8:11:41 PM2/7/14
to libnfc-...@googlegroups.com
Revision: 766ed55c79e7
Author: Philippe Teuwen <yob...@gmail.com>
Date: Fri Feb 7 22:09:34 2014 UTC
Log: 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()

http://code.google.com/p/libnfc/source/detail?r=766ed55c79e7

Modified:
/utils/jewel.h

=======================================
--- /utils/jewel.h Sun Feb 2 23:04:08 2014 UTC
+++ /utils/jewel.h Fri Feb 7 22:09:34 2014 UTC
@@ -200,7 +200,7 @@
} jewel_tag_blocks;

typedef struct {
- uint8_t abtData[112];
+ uint8_t abtData[120];
} jewel_tag_data;

typedef union {
Reply all
Reply to author
Forward
0 new messages