-
Notifications
You must be signed in to change notification settings - Fork 185
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
cbor_value_copy_byte_string causes stack corruption #194
Comments
I can't find this version of the code. What version of TinyCBOR are you using? The function |
Or don't terminate, as the case may be. Relates to intel#194. Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
Or don't terminate, as the case may be. Relates to intel#194. Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
I am using TinyCBOR from ZephyrOS https://github.com/zephyrproject-rtos/tinycbor/blob/31ae89e4b768612722620cb6cb173a0de4a19cc9/src/cborparser.c#L1292 |
Please report to them. Their copy is modified. |
Or don't terminate, as the case may be. Relates to #194. Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
The documentation of the function cbor_value_copy_byte_string says:
However, the null byte is appended without checking if the size of buffer:
This causes that one byte belonging to some other variable is overwritten.
The text was updated successfully, but these errors were encountered: