Fixed md5 buffer size

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2022-09-14 20:38:53 +02:00
parent 611260fd7e
commit c0cf5da34f

View File

@ -50,7 +50,7 @@ void tokenize(char *buf, struct parser_state *state, struct session_data *sdata,
continue; continue;
} }
char md5buf[2*MD5_DIGEST_LENGTH+2]; char md5buf[2*DIGEST_LENGTH+2];
if(state->message_state == MSG_FROM && state->is_1st_header == 1 && strlen(state->b_from) < SMALLBUFSIZE-len-1){ if(state->message_state == MSG_FROM && state->is_1st_header == 1 && strlen(state->b_from) < SMALLBUFSIZE-len-1){
strtolower(puf); strtolower(puf);