mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
fixed a very old buffer overflow bug
This commit is contained in:
parent
7dc4c05383
commit
0ef499deaa
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ memcpy_from_doc_mil(void *dest, const void *src, size_t n)
|
|||
int i;
|
||||
unsigned long address = (unsigned long) src;
|
||||
|
||||
for (i = n; i >= 0; i -= 0x200) {
|
||||
for (i = n; i > 0; i -= 0x200) {
|
||||
unsigned short c = 0x1000;
|
||||
volatile unsigned char dummy;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue