mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2026-11-17 10:35:41 +00:00
Increase buffer size to prevent potential overflow
This commit is contained in:
1 parent
34168759b0
commit
dcf771424b
1 file changed
+1
-1
+1
-1
@@ -364,7 +364,7 @@ static int cmd_write(PROGRAMMER * pgm, struct avrpart * p,
|
||||
return -1;
|
||||
}
|
||||
|
||||
uint8_t * buf = malloc(mem->size);
|
||||
uint8_t * buf = malloc(mem->size + 0x10);
|
||||
if (buf == NULL) {
|
||||
avrdude_message(MSG_INFO, "%s (write): out of memory\n", progname);
|
||||
return -1;
|
||||
|
||||
Reference in new issue
Block a user