]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: raw-mail - Cast st_size to uoff_t
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 28 Oct 2020 10:22:58 +0000 (12:22 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 28 Oct 2020 10:26:47 +0000 (12:26 +0200)
commitedb32ea0e8cfcf3c76f30f7a59ab84b8ec349fc2
tree56ce1c2838b5804c2adc5ce0094612ffb8a4fd88
parent005a3d3b52cf0a560d2b0058610566c70d33fb1d
lib-storage: raw-mail - Cast st_size to uoff_t

mbox->size is unsigned field, and st_size will be -1
is the stat target is not regular file or symbolic link.
This can happen if it's stream like stdin.
src/lib-storage/index/raw/raw-mail.c