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:
Igor V. Kovalenko
2010-04-12 20:02:53 +00:00
committed by Mark Cave-Ayland
parent 2f18dff299
commit 2d74db1de3
10 changed files with 27 additions and 2 deletions

View File

@@ -185,6 +185,8 @@ int openbios(void)
collect_sys_info(&sys_info);
dict = malloc(DICTIONARY_SIZE);
dictlimit = DICTIONARY_SIZE;
load_dictionary((char *)sys_info.dict_start,
(unsigned long)sys_info.dict_end
- (unsigned long)sys_info.dict_start);