[Webkit-unassigned] [Bug 127424] Crashes in setTextForIterator
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 22 10:31:49 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=127424
--- Comment #7 from Brent Fulgham <bfulgham at webkit.org> 2014-01-22 10:29:19 PST ---
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> >
> > It's unclear if we should be resizing the buffer, or revising the uses of UTextWithBufferInlineCapacity to avoid the additional "+ 1".
> >
>
> Good point, that might be the case.
>
> > For example, if we resize the buffer by one, is this math now wrong? (see UTextProviderLatin1.cpp line 125):
> >
> > uText->chunkNativeLimit = uText->chunkNativeStart + UTextWithBufferInlineCapacity;
>
> I don't think this patch changes any logic, as we only allocate more space, without changing the UTextWithBufferInlineCapacity constant.
I probably used a bad example. Consider Line 135 in the same file:
uText->chunkNativeStart = uText->chunkNativeLimit - UTextWithBufferInlineCapacity;
Now we position are starting point in the final element of the buffer, rather than one past it. Doesn't that mean we will get improper results?
--
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