Use of isspace() and friends in Cyrus
Greg A. Woods
woods-cyrus at weird.com
Fri Mar 20 11:55:33 EDT 2009
At Thu, 19 Mar 2009 11:25:56 +0000 (GMT), David Carter <dpc22 at cam.ac.uk> wrote:
Subject: Use of isspace() and friends in Cyrus
>
> isspace(-10) isn't defined.
>
> Worse isspace() is normally implemented as an array lookup and can
> segfault with a negative index if you are really unlucky.
s/unlucky/lucky/
I.e. it's lucky to get some abort-causing error as soon as possible if
you are a developer -- the sooner one learns the error of one's ways,
the better! :-)
--
Greg A. Woods
+1 416 218-0098 VE3TCP RoboHack <woods at robohack.ca>
Planix, Inc. <woods at planix.com> Secrets of the Weird <woods at weird.com>
More information about the Cyrus-devel
mailing list