[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: KDE_3_2_BRANCH: kdelibs/kdecore
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2004-06-01 11:26:10
Message-ID: 20040601112610.GC1320 () ugly ! local
[Download RAW message or body]

On Tue, Jun 01, 2004 at 11:56:20AM +0200, Waldo Bastian wrote:
> It can still access the out of bound str[str.length()] in such case.
> 
no, as QString [] is bounds-checked.

greetings

> > -        for (sl = 0; str[rpos + sl] != '}'; sl++);
> > +        for (sl = 0; str[rpos + sl] != '}'; sl++)
> > +            if (rpos + sl >= str.length())
> > +                return 0;

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic