You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like we are calculating the checksum based on the in-memory contents of op log struct here. When the entry_size value goes beyond the memory boundaries of the structure I think it will be an error (It should ideally point to the next information i.e., fname1).
Null string termination: The string procured needs to be null terminated since the buffer is not guaranteed to be zeroed.
While this does not cause issues if there is no crash, it causes issues when trying to recover from a crashed state.
The text was updated successfully, but these errors were encountered:
Some issues on checksum calculation
entry_size
value goes beyond the memory boundaries of the structure I think it will be an error (It should ideally point to the next information i.e., fname1).While this does not cause issues if there is no crash, it causes issues when trying to recover from a crashed state.
The text was updated successfully, but these errors were encountered: