mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
MDEV-13595: mariadb-10.2.8/storage/maria/ma_loghandler.c:2730]: (style) Array index 'chunk_offset' is used before limits check.
In fact just a cosmetic fix, code was safe because translog_get_first_chunk_offset return offsets inside the page.
This commit is contained in:
parent
028d253dd7
commit
bea99275de
1 changed files with 1 additions and 1 deletions
|
@ -2741,7 +2741,7 @@ static my_bool translog_recover_page_up_to_sector(uchar *page, uint16 offset)
|
|||
DBUG_PRINT("enter", ("offset: %u first chunk: %u",
|
||||
(uint) offset, (uint) chunk_offset));
|
||||
|
||||
while (page[chunk_offset] != TRANSLOG_FILLER && chunk_offset < offset)
|
||||
while (chunk_offset < offset && page[chunk_offset] != TRANSLOG_FILLER)
|
||||
{
|
||||
uint16 chunk_length;
|
||||
if ((chunk_length=
|
||||
|
|
Loading…
Add table
Reference in a new issue