#4828: ghci fails to load fat binary archives on OS X
---------------------------------+------------------------------------------
Reporter: gwright | Owner: igloo
Type: bug | Status: patch
Priority: normal | Milestone: 7.2.1
Component: Runtime System | Version: 7.0.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: MacOS X | Blocking:
Architecture: Unknown/Multiple | Failure: GHCi crash
---------------------------------+------------------------------------------
Comment(by igloo):
Replying to [comment:8 gwright]:
>
> I checked the loadArchive routine and it does get the length of an
archive from the archive header, so we should never run past the end.
Where does it do that?
As far as I can see the
{{{
while(1) {
n = fread ( fileName, 1, 16, f );
[...]
}
}}}
loop will keep reading off the end of the arch's segment.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4828#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs