forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rtc: drivers: Fix possible out-of-bounds access in MCP7940N driver
This PR fixes the issue of possible out-of-bounds access if write_data_block function was misused. Size argument of the function was only validated against the maximum allowed value, not the real size of the data struct to be read, what could cause accessing data past the boundary of the struct. Should fix zephyrproject-rtos#81930. Signed-off-by: Marcin Lyda <[email protected]>
- Loading branch information
Showing
1 changed file
with
47 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters