LMX bug: Adium ticket #13628

Evan Schoenberg, M.D. evan at adium.im
Tue Apr 27 01:15:15 UTC 2010


On Apr 26, 2010, at 7:47 PM, Evan Schoenberg, M.D. wrote:

> So LMX is supposed to be able to take data in chunks, from the end of the file.  It turns out that this doesn't work if a chunk breaks up an entity, though.
> 
> A chat transcript, submitted by lhirlimann to me via email by request, exhibits this behavior on my machine, when read by -[DCMessageContextDisplayPlugin contextForChat:], since that method reads in 4*getpagesize() byte chunks and that number of bytes from the end is the middle of an entity.
> 
> Specifically, the resulting chunk #1 starts with 'apos'.  The resulting chunk #2 ends with '&'.
> 
> The result is an assertion failure:
>  *** Assertion failure in -[LMXParser parseEntityReference:], /Volumes/Huffman/Projects/lmx-sholt/LMXParser.m:605
> "entity name was empty! currentIndex is 5193 (&) out of 21579 bytes"


The same information, for Correctness, has been submitted to the LMX issue tracker: http://bitbucket.org/boredzo/lmx/issue/3/

-Evan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20100426/ee296972/attachment-0002.html>


More information about the devel mailing list