mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 22:45:27 +00:00
Increase buffer size to prevent potential overflow
This commit is contained in:
@@ -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