[prev in list] [next in list] [prev in thread] [next in thread]
List: mutt-dev
Subject: bug#1171: mutt-1.3.28i: mutt_unlink is completely broken
From: Michael Elkins <me () sigpipe ! org>
Date: 2002-04-29 17:10:15
[Download RAW message or body]
On Mon, Apr 29, 2002 at 04:48:08PM -0000, leitner@fefe.de wrote:
> mutt_unlink calls stat and then subtracts sizeof(buf) from (struct
> stat)sb.st_size until that becomes zero or negative. Problem is, that
> element is unsigned on my system (Linux with diet libc). This causes
> this brilliant loop to consume all system resources by writing and
> endless stream of zero bytes to an unlinked file in /tmp, thus eating
> all the available CPU and disk bandwidth.
According to both SUSv2 and SUSv3:
blkcnt_t and off_t shall be signed integer types.
See http://www.opengroup.org/onlinepubs/007904975/basedefs/sys/types.h.html#tag_13_67
Why is off_t unsigned for diet libc?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic