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:
zq301 2016-01-24 14:39:48 +08:00
parent 9a5682b75b
commit 915facad22

View file

@ -90,7 +90,8 @@ PROCESS_THREAD(shell_var_process, ev, data)
{ {
int i; int i;
int j; int j;
char numbuf[32];
char numbuf[39];
PROCESS_BEGIN(); PROCESS_BEGIN();