Mark Rotteveel
unread,Jul 8, 2025, 4:30:08 AMJul 8Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to firebir...@googlegroups.com
Prompted by a Visual Studio analysis warning in vio.cpp, looking at
void VIO_update_in_place
it seems to me that
```
DPM_store(tdbb, &temp2, *stack, DPM_secondary);
if (stack)
{
const USHORT pageSpaceID = temp2.getWindow(tdbb).win_page.getPageSpaceID();
stack->push(PageNumber(pageSpaceID, temp2.rpb_page));
}
```
as stack can be NULL at that point, it should be:
```
if (stack)
{
DPM_store(tdbb, &temp2, *stack, DPM_secondary);
const USHORT pageSpaceID = temp2.getWindow(tdbb).win_page.getPageSpaceID();
stack->push(PageNumber(pageSpaceID, temp2.rpb_page));
}
```
Is that correct?
Mark
--
Mark Rotteveel