[Webkit-unassigned] [Bug 69669] WebKit2/Shared/APIClient.h complains that array subscript is below array bounds

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 13 11:44:45 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=69669





--- Comment #6 from Rafael Brandao <rafael.lobo at openbossa.org>  2011-10-13 11:44:45 PST ---
(In reply to comment #4)
> (From update of attachment 110674 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=110674&action=review
> 
> > Source/WebKit2/Shared/APIClient.h:51
> > +        if (client && client->version < currentVersion && client->version >= 0)
> 
> Can currentVersion be a unsigned?

I've tried to change it to be unsigned, but then the compiler started to complain about comparison of unsigned expression < 0 being always false. The expression it is talking about is "client->version < currentVersion" when currentVersion is 0 which is possible. So I would just get into another warning.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list