• Marko Mäkelä's avatar
    MDEV-24156 trx_undo_left() fails to prevent overflow · 7b7e5922
    Marko Mäkelä authored
    trx_undo_left(): Return 0 in case of an overflow, instead of
    returning a negative number interpreted as a large positive number.
    Also, add debug assertions to check that the pointer is within
    the page area. This should allow us to catch bugs like
    MDEV-24096 easier in the future.
    7b7e5922
trx0rec.cc 68.7 KB