mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 19:23:03 +01:00
Fixed bug CORE-4510 : AV in validation is possible
This commit is contained in:
parent
a8b1dba646
commit
144526977f
@ -1897,7 +1897,7 @@ ULONG PageSpace::lastUsedPage()
|
||||
|
||||
thread_db* tdbb = JRD_get_thread_data();
|
||||
|
||||
do
|
||||
while (true)
|
||||
{
|
||||
pag* page = CCH_FETCH(tdbb, &window, LCK_read, pag_undefined);
|
||||
if (page->pag_type == pag_pages)
|
||||
@ -1913,7 +1913,7 @@ ULONG PageSpace::lastUsedPage()
|
||||
pipLast = pipFirst;
|
||||
|
||||
window.win_page = pipLast;
|
||||
} while (pipLast > pipFirst);
|
||||
};
|
||||
|
||||
page_inv_page* pip = (page_inv_page*) window.win_buffer;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user