Added further checks

This commit is contained in:
Luca Deri
2021-05-15 19:53:46 +02:00
parent 9c5ba9c060
commit 1ec621c85b
2 changed files with 24 additions and 22 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ struct netbios_header {
int ndpi_netbios_name_interpret(char *in, size_t in_len, char *out, u_int out_len) {
u_int ret = 0, len, idx = in_len, out_idx = 0;
len = (*in++)/2;
len = (*in++)/2, in_len--;
out_len--;
out[out_idx] = 0;