]> source.dussan.org Git - rspamd.git/commit
Check gsize against G_MAXSIZE not ULLONG_MAX 3603/head
authorChristian Göttsche <cgzones@googlemail.com>
Sat, 9 Jan 2021 13:25:46 +0000 (14:25 +0100)
committerChristian Göttsche <cgzones@googlemail.com>
Sat, 9 Jan 2021 13:25:46 +0000 (14:25 +0100)
commit08adbf76c1d91a527235b68a17628eb04b681f6f
tree89ef69eb82755754f8bc019aa3e673656af8f476
parent8d7a7668dd68f12a3d9232ee5323805107b70cbb
Check gsize against G_MAXSIZE not ULLONG_MAX

/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) {
      |                       ^~
src/libserver/http/http_message.c