8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 16:03:02 +01:00

Fixed bug CORE-4510 : AV in validation is possible

This commit is contained in:
hvlad 2014-08-05 16:00:47 +00:00
parent a8b1dba646
commit 144526977f

View File

@ -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;