/builds/cgzones/rspamd/debian/output/source_dir/src/libserver/http/http_message.c: In function 'rspamd_http_message_set_body':
/builds/cgzones/rspamd/debian/output/source_dir/src/libserver/http/http_message.c:201:23: warning: comparison is always true due to limited range of data type [-Wtype-limits]
201 | if (len != 0 && len != ULLONG_MAX) {
| ^~
/builds/cgzones/rspamd/debian/output/source_dir/src/libserver/http/http_message.c:230:23: warning: comparison is always true due to limited range of data type [-Wtype-limits]
230 | if (len != 0 && len != ULLONG_MAX) {
| ^~
return FALSE;
}
- if (len != 0 && len != ULLONG_MAX) {
+ if (len != 0 && len != G_MAXSIZE) {
if (ftruncate (storage->shared.shm_fd, len) == -1) {
return FALSE;
}
}
}
else {
- if (len != 0 && len != ULLONG_MAX) {
+ if (len != 0 && len != G_MAXSIZE) {
if (data == NULL) {
storage->normal = rspamd_fstring_sized_new (len);
msg->body_buf.len = 0;