forked from project-chip/connectedhomeip
-
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.
Check for too-large events before we modify our buffer state. (projec…
…t-chip#25257) We could end up in a situation where an INFO event that fit into the DEBUG buffer but did not fit into the INFO buffer would get written to the buffer, and possibly evict some other events, but then we would error out from LogEventPrivate, and leave ourselves in an inconsistent state. The fix is to do the "this event fits in all the buffers that it might need to fit in" check before we start modifying any state.
- Loading branch information
1 parent
ebc08a5
commit b236bfb
Showing
2 changed files
with
27 additions
and
26 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
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