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
[Bug] Heap-based Buffer Overflow in mqtt_parser.c
- copyn_utf8_str()
#1043
Comments
==88333==ERROR: LeakSanitizer: detected memory leaks Direct leak of 168 byte(s) in 1 object(s) allocated from: Direct leak of 168 byte(s) in 1 object(s) allocated from: Direct leak of 168 byte(s) in 1 object(s) allocated from: Indirect leak of 66 byte(s) in 1 object(s) allocated from: Indirect leak of 64 byte(s) in 1 object(s) allocated from: Indirect leak of 64 byte(s) in 1 object(s) allocated from: SUMMARY: AddressSanitizer: 698 byte(s) leaked in 6 allocation(s). |
Describe the bug
Heap overflow occurred in copyn_utf8_str function of mqtt_parser.c Confirmed with address sanitizer
Expected behavior
A clear and concise description of what you expected to happen.
Actual Behavior
Heap Overflow(CWE-122)
To Reproduce
asan log
target file :
target-1675833483.502341.txt
** Environment Details **
Client SDK
Using MQTT Raw Packet
Additional context
The text was updated successfully, but these errors were encountered: