1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/paho-mqtt: fix memory corruption

This fixes instances where a pointer to an enum (possibly sized one
byte) is casted to a pointer to int (which is at least two and in most
cases four bytes in size). As result, out-of-bounds memory accesses
are bound to happen.

This was detected by GCC 11.2.0 with -Wstringop-overflow.
This commit is contained in:
Marian Buschsieweke 2022-01-11 11:25:52 +01:00
parent 2491bbaea3
commit 6a138cc5c4
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94