mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-04 05:43:33 +03:00
fixed buffer overflow in handle_null_request()
This commit is contained in:
parent
5dbe640ec5
commit
4c2f9bf4b7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue