[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSIternalInconsistencyException with NSMutableData
From: |
Germán Arias |
Subject: |
Re: NSIternalInconsistencyException with NSMutableData |
Date: |
Sun, 05 Jan 2014 13:04:38 -0600 |
User-agent: |
GNUMail (Version 1.2.1) |
On 2014-01-05 11:33:43 -0600 Richard Frith-Macdonald
<richardfrithmacdonald@gmail.com> wrote:
[...]
>
> I found it ... it's actually in Pantomime rather than GNUmail.
Sorry.
> Not that that helps much.
> Looking at NSData.m I think it would be possible to get this exception if you
> have an empty mutable string which has never been used (so it doesn't have a
> buffer), and try to replace a zero length range with a zero length string.
> That ought to be a no-op, so I've modified the code to check for that case
> and return without doping anything if it finds it.
> Maybe the code in turnk would work now?
>
Thanks Richard, now works.
Germán.