-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"esp_flash_api.c" and "transport_ssl.c“ make some changes (IDFGH-2486) #4598
Comments
@xiruilin Thanks for reporting, we would look into. Thanks. |
@xiruilin For the |
@ginkgm |
@xiruilin Glad to hear the first issue has been resolved, how about the second issue? For the transport_ssl change suggested above, do you have test case or code snippet which fails to work without this? Thanks. |
@Alvin1Zhang @mahavirj |
Environment
Problem Description
In
esp_flash_api.c
lines 501, functionesp_flash_read()
, if read length too big, thenlength_to_allocate = MAX(MAX_READ_CHUNK, length)
will cause memory allocation to fail.In lines 519,
length_to_read = MIN(MAX_READ_CHUNK, length)
, so it can be modified as follows:In
transport_ssl.c
lines 168, functionssl_close()
, if https request got 301 or 302 status code,need to redirect, the ssl state must be reset to origin, changed below:
Thanks!
The text was updated successfully, but these errors were encountered: