Fix stack overflow with long APDUs

This commit is contained in:
Alexandre Paillier
2022-03-24 18:52:45 +01:00
parent 161919c012
commit e57bc93c69

View File

@@ -594,7 +594,7 @@ void init_heap(void)
int main(void)
{
uint8_t buf[256];
uint8_t buf[260]; // 4 bytes APDU header + 256 bytes payload
uint16_t idx;
int state;
uint8_t payload_size = 0;