win-pvdrivers

diff xenvbd/xenvbd.c @ 812:551d17b09bc1

Force a crash if we get a buffer overrun in hibernate
author James Harper <james.harper@bendigoit.com.au>
date Sat Aug 28 13:53:10 2010 +1000 (2010-08-28)
parents 1293cb31aa0b
children 4d1539643494
line diff
     1.1 --- a/xenvbd/xenvbd.c	Sat Aug 28 13:52:40 2010 +1000
     1.2 +++ b/xenvbd/xenvbd.c	Sat Aug 28 13:53:10 2010 +1000
     1.3 @@ -439,6 +439,7 @@ XenVbd_PutQueuedSrbsOnRing(PXENVBD_DEVIC
     1.4  
     1.5      if ((ULONG_PTR)srb->DataBuffer & 511)
     1.6      {
     1.7 +      ASSERT(!dump_mode || block_count * 512 < BLKIF_MAX_SEGMENTS_PER_REQUEST_DUMP_MODE * PAGE_SIZE);
     1.8        xvdd->aligned_buffer_in_use = TRUE;
     1.9        ptr = xvdd->aligned_buffer;
    1.10        if (!decode_cdb_is_read(srb))