tests: make magic values in ioctl_block test distinctive
* tests/ioctl.block (init_magic): Add iterator value to magic value in order to enable detection of potential 4-byte aligned shifts.
This commit is contained in:
@ -50,7 +50,7 @@ init_magic(void *addr, const unsigned int size)
|
||||
const unsigned int *end = addr + size - sizeof(int);
|
||||
|
||||
for (; p <= end; ++p)
|
||||
*(unsigned int *) p = magic;
|
||||
*(unsigned int *) p = magic + (p - (unsigned int *) addr);
|
||||
}
|
||||
|
||||
static struct xlat block_argless[] = {
|
||||
|
Reference in New Issue
Block a user