mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-28 20:45:12 +00:00
fixed buffer overflow in handle_null_request()
This commit is contained in:
parent
5dbe640ec5
commit
4c2f9bf4b7
@ -1854,7 +1854,7 @@ handle_null_request(int dns_fd, struct query *q, int domain_len)
|
||||
{
|
||||
char cmd, userchar;
|
||||
int userid = -1;
|
||||
uint8_t in[QUERY_NAME_SIZE];
|
||||
uint8_t in[QUERY_NAME_SIZE + 1];
|
||||
|
||||
/* Everything here needs at least 5 chars in the name:
|
||||
* cmd, userid and more data or at least 3 bytes CMC */
|
||||
|
Loading…
Reference in New Issue
Block a user