Re: signed int wrap with quota

2002-04-23 Thread Wil Cooley
Also Sprach Wil Cooley <[EMAIL PROTECTED]> on Tue, Apr 23, 2002 at 03:00:10PM PDT > Cyrus 2.0.16: ... > Considering that quotas are used in kilobytes, it should be a matter > of checking if the user-supplied quota is 2097151 ((2^31-1)/2) > or greater and return an error. Erm, that should be ((2^3

signed int wrap with quota

2002-04-23 Thread Wil Cooley
Cyrus 2.0.16: I've just stumbled onto what I think is a bug. The quota struct in mailbox.h defines 'int limit'. I hadn't been able to figure out if the quota limits were in bytes or kilobytes (I've since read the code and figured it out) and I wanted to set large quotas as a failsafe on a new i