cc1: warnings being treated as errors
app-layer-smtp.c: In function ‘SMTPParseCommandBDAT’:
app-layer-smtp.c:908: warning: dereferencing type-punned pointer will break strict-aliasing rules
/* decoder event */
return -1;
}
- uint8_t *endptr = NULL;
+ char *endptr = NULL;
state->bdat_chunk_len = strtoul((const char *)state->current_line + i,
(char **)&endptr, 10);
- if (endptr == state->current_line + i) {
+ if ((uint8_t *)endptr == state->current_line + i) {
/* decoder event */
return -1;
}