mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Merge pull request #1831 from jmichelp/master
Buffer size too conservative
This commit is contained in:
commit
02525f610c
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ static void __attribute__((optimize("O0"))) I2CSpinDelayClk(uint16_t delay) {
|
||||||
#define I2C_DELAY_XCLK(x) I2CSpinDelayClk((x))
|
#define I2C_DELAY_XCLK(x) I2CSpinDelayClk((x))
|
||||||
|
|
||||||
// The SIM module v4 supports up to 384 bytes for the length.
|
// The SIM module v4 supports up to 384 bytes for the length.
|
||||||
#define ISO7816_MAX_FRAME 260
|
#define ISO7816_MAX_FRAME 270
|
||||||
|
|
||||||
// try i2c bus recovery at 100kHz = 5us high, 5us low
|
// try i2c bus recovery at 100kHz = 5us high, 5us low
|
||||||
void I2C_recovery(void) {
|
void I2C_recovery(void) {
|
||||||
|
|
|
@ -337,7 +337,7 @@ static int smart_responseEx(uint8_t *out, int maxoutlen, bool verbose) {
|
||||||
}
|
}
|
||||||
int ofs = totallen;
|
int ofs = totallen;
|
||||||
maxoutlen -= totallen;
|
maxoutlen -= totallen;
|
||||||
PrintAndLogEx(INFO, "Keeping data (%d bytes): %s", ofs, sprint_hex(out, ofs));
|
PrintAndLogEx(DEBUG, "Keeping data (%d bytes): %s", ofs, sprint_hex(out, ofs));
|
||||||
|
|
||||||
int len = out[datalen - 1];
|
int len = out[datalen - 1];
|
||||||
if (len == 0 || len > MAX_APDU_SIZE) {
|
if (len == 0 || len > MAX_APDU_SIZE) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue