Repository navigation
Conversation
obgm
left a comment
There was a problem hiding this comment.
In general, these changes address the OOB read issue. There are two pitfalls regarding the break condition for the for loops that decrease i by 2 due to the now unsigned data type.
Coding style: This PR mixes uint16_t (the standardized type from stdint.h and uint16 (the local typedef for compatibility with platforms that do not have the standard C library). For consistency, I suggest using uint16 throughout the code.
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
if we use the I will add the checks for odd lengths. |
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
720d6d1 to
a5bc22f
Compare
Hm, a quick check shows 2 as a result for |
if |
|
Yes, |
|
Very valid point. |
No description provided.