bounds check

pull/1/head
Jeff Becker 6 years ago
parent a3628f153a
commit 0d4baa924e
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -825,6 +825,11 @@ namespace iwp
void
on_session_start(const void *buf, size_t sz)
{
if(sz > sizeof(workbuf))
{
llarp::Debug("session start too big");
return;
}
// own the buffer
memcpy(workbuf, buf, sz);
// verify session start

Loading…
Cancel
Save