-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Closed
Description
See discussion in earlephilhower/arduino-pico#783
arduino-builder no longer includes {build.path} in the includes, so the generated Updater_Signing.h is never used.
#8507 adjusts _size here but it should be binSize:
Arduino/cores/esp8266/Updater.cpp
Lines 245 to 248 in 313b3c0
| int binSize = _size; | |
| if (expectedSigLen > 0) { | |
| _size -= (sigLen + sizeof(uint32_t) /* The siglen word */); | |
| } |
That means the signature will be calculated over the entire blob, including the signature itself, causing failure.
See the prior line:
Arduino/cores/esp8266/Updater.cpp
Line 238 in 520233f
| int binSize = _size - sigLen - sizeof(uint32_t) /* The siglen word */; |
Metadata
Metadata
Assignees
Labels
No labels