Le 4 juil. 07 à 22:04, David Chisnall a écrit :
> Are we using compiled, or packaged GNUstep for the LiveCD?
LiveCD uses latest GNUstep releases compiled.
> If we are
> using a compiled version, please could you patch the source for
> NSOutlineView and patch, NSOutlineView.m replacing the itemAtRow:
> method with this:
>
> - (id)itemAtRow: (int)row
> {
> if (row >= [_items count])
> {
> return [NSNull null];
> }
> return [_items objectAtIndex: row];
> }
>
> There is an irritating bug in GNUstep's NSOutlineView that causes the
> _numberOfRows ivar inherited from NSTableView to get larger than
> [_items count] when the number of items grows too large. The next
> time a redraw occurs, this causes an array out of bounds exception as
> it tries to grab data from past the end of the array.
>
> I don't want to push this upstream to GNUstep, because it's not a
> good fix. It treats the symptoms of the bug, but the real solution
> is to track down where _numberOfRows is not changed and should be.
> This will stop some crashing on the LiveCD though, so it's probably
> worth doing.
ok, I will include it, probably not in the coming build though (but
rather in the next one).
I have been thinking a bit about some sort of official mechanism to
patch GNUstep on LiveCD or in the case the user compile/install
GNUstep by himself.
Cheers,
Quentin.
_______________________________________________
Etoile-dev mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-dev