mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
coverity CID 322662
This commit is contained in:
parent
3a54bc35fb
commit
28032cd3be
1 changed files with 2 additions and 0 deletions
|
@ -433,6 +433,7 @@ static int ndef_print_CC(uint8_t *data) {
|
||||||
uint8_t cc_major = (data[1] & 0xC0) >> 6;
|
uint8_t cc_major = (data[1] & 0xC0) >> 6;
|
||||||
|
|
||||||
char wStr[50];
|
char wStr[50];
|
||||||
|
memset(wStr, 0, sizeof(wStr));
|
||||||
switch (cc_write) {
|
switch (cc_write) {
|
||||||
case 0:
|
case 0:
|
||||||
sprintf(wStr, "Write access granted without any security");
|
sprintf(wStr, "Write access granted without any security");
|
||||||
|
@ -448,6 +449,7 @@ static int ndef_print_CC(uint8_t *data) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
char rStr[46];
|
char rStr[46];
|
||||||
|
memset(rStr, 0, sizeof(rStr));
|
||||||
switch (cc_read) {
|
switch (cc_read) {
|
||||||
case 0:
|
case 0:
|
||||||
sprintf(rStr, "Read access granted without any security");
|
sprintf(rStr, "Read access granted without any security");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue