Exit eoe receive function if buffer is not valid
If buffer is invalid the call to the subsequent memcpy will corrupt memorypull/134/head
parent
8de160a851
commit
66b040a257
|
@ -763,6 +763,12 @@ static void EOE_receive_fragment (void)
|
|||
EOEvar.rxframeoffset = 0;
|
||||
EOEvar.rxframeno = EOE_HDR_FRAME_NO_GET(frameinfo2);
|
||||
}
|
||||
else
|
||||
{
|
||||
DPRINT("Receive buffer is invalid\n");
|
||||
EOE_init_rx ();
|
||||
return;
|
||||
}
|
||||
}
|
||||
/* In frame fragment received */
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue