mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-01 18:33:12 +00:00
a memory overflow in shell-vars.c
" sprintf(numbuf, "0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x",...)" . the formatted data wrote to "numbuf" is 39 bytes, but numbuf is 32 bytes.
This commit is contained in:
parent
9a5682b75b
commit
915facad22
@ -90,7 +90,8 @@ PROCESS_THREAD(shell_var_process, ev, data)
|
||||
{
|
||||
int i;
|
||||
int j;
|
||||
char numbuf[32];
|
||||
|
||||
char numbuf[39];
|
||||
|
||||
PROCESS_BEGIN();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user