You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SDK Version (Please Give Commit SHA if Manually Compiling)
Version LTS_08_2023 aka 1.11.0
Describe the Bug
When running/compiling Azure IoT C SDK on an embedded system with newlib as C library, calling IoTHubDeviceClient_LL_UploadMultipleBlocksToBlob() segfaults.
The reason could be traced to the following locations:
SDK Version (Please Give Commit SHA if Manually Compiling)
Version LTS_08_2023 aka 1.11.0
Describe the Bug
When running/compiling Azure IoT C SDK on an embedded system with newlib as C library, calling
IoTHubDeviceClient_LL_UploadMultipleBlocksToBlob()
segfaults.The reason could be traced to the following locations:
When formatting the response in line
azure-iot-sdk-c/iothub_client/src/iothub_client_ll_uploadtoblob.c
Line 1060 in 97fef57
responseMessage == NULL
.Passing
NULL
toprintf()
is undefined behavior.This is because
azure-iot-sdk-c/iothub_client/src/iothub_client_core_ll.c
Line 2909 in 97fef57
NULL
as the last parameter.Suggested fix:
Either pass a meaningful message (
uploadSucceeded ? "HTTP success" : "HTTP failure"
) or an empty string (""
).The text was updated successfully, but these errors were encountered: