Azure / iot-hub-device-update

Device Update for IoT Hub agent
MIT License
53 stars 41 forks source link

Fix extension_utils.c: json file generation in Register[Handler]Extension #633

Closed HarryWaschkeit closed 1 month ago

HarryWaschkeit commented 3 months ago

STRING_construct_sprintf() is erroneously called with format specifier "%d" for fileSize being a "long long [int]". Depending on the architecture this can lead to subsequent arguments getting misinterpreted during vsnprintf() invocation in this function. Found that bug on arm32 architecture (i.MX6).