mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Commit revised version of Igor Kovalenko's patch for detecting whether dictionary allocations have overrun the memory
buffer allocated for them. Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@741 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Mark Cave-Ayland
parent
2f18dff299
commit
2d74db1de3
@@ -851,6 +851,14 @@ static void herewrite(void)
|
||||
#ifdef CONFIG_DEBUG_INTERNAL
|
||||
printk("here!: new value: %x\n", tmp);
|
||||
#endif
|
||||
|
||||
if (dictlimit && dicthead >= dictlimit) {
|
||||
printk("Dictionary space overflow:"
|
||||
" dicthead=" FMT_ucellx
|
||||
" dictlimit=" FMT_ucellx
|
||||
"\n",
|
||||
dicthead, dictlimit);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user