mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 01:55:38 +08:00
chg: fix coverity scan bug, variable is treated like a array
This commit is contained in:
parent
6ab1b285a0
commit
695d4cbb51
1 changed files with 4 additions and 3 deletions
|
@ -345,7 +345,7 @@ static bool SMART_CARD_ClassSelection( uint8_t class, uint8_t * answer, uint8_t
|
|||
* @return bool true = Operation was performed successfully
|
||||
* false = An error occurred
|
||||
*/
|
||||
static bool SMART_CARD_ProcessResetAnswer( uint8_t * answer, uint8_t length ) {
|
||||
static bool SMART_CARD_ProcessResetAnswer( uint8_t* answer, uint8_t length ) {
|
||||
// TODO: This functions implementation is not yet complete
|
||||
bool result = false;
|
||||
uint8_t class;
|
||||
|
@ -438,7 +438,7 @@ static void SMART_CARD_ActivateInterface( void ) {
|
|||
static bool SMART_CARD_EstablishCommunications( void ) {
|
||||
// TODO: This functions implementation is not yet complete
|
||||
bool result = false;
|
||||
uint8_t answer;
|
||||
uint8_t* answer = BigBuf_malloc(100);
|
||||
|
||||
// Activate the interface
|
||||
SMART_CARD_ActivateInterface();
|
||||
|
@ -448,7 +448,7 @@ static bool SMART_CARD_EstablishCommunications( void ) {
|
|||
|
||||
// Process the "answer" if it was received
|
||||
if ( result ) {
|
||||
result = SMART_CARD_ProcessResetAnswer( &answer, 100 );
|
||||
result = SMART_CARD_ProcessResetAnswer( answer, 100 );
|
||||
|
||||
// Check if the "answer" was acceptable
|
||||
if ( !result ) {
|
||||
|
@ -456,6 +456,7 @@ static bool SMART_CARD_EstablishCommunications( void ) {
|
|||
WaitMS( 20 );
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue