mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
log0recv.c:
Add fault tolerance: when a log record contains nonsensical space id or page number, stop log scan there
This commit is contained in:
parent
2f91f2360a
commit
eb883b30a5
1 changed files with 3 additions and 1 deletions
|
@ -1316,7 +1316,9 @@ recv_parse_log_rec(
|
|||
|
||||
new_ptr = mlog_parse_initial_log_record(ptr, end_ptr, type, space,
|
||||
page_no);
|
||||
if (!new_ptr) {
|
||||
/* Check that space id and page_no are sensible */
|
||||
|
||||
if (!new_ptr || *space != 0 || *page_no > 0x8FFFFFFF) {
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue