Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix lightware_laser_serial: prevent potential heap buffer overflow (#…
…22202) In the lightware_parser function, LW_PARSE_STATE2_GOT_DIGIT0 state can be repeated unexpectedly without proper parserbuf_index or state checking. This behavior will trigger a heap buffer overflow vulnerability by allowing to write some data. And the writable size is sizeof(unsigned).
- Loading branch information
6dfede0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit message is not correct, The writable size is maximum value of
unsigned int