Mon Jul  7 02:58:36 PDT 2008  Simon Marlow <[EMAIL PROTECTED]>
  * FIX #1736, and probably #2169, #2240
  appendStringBuffer was completely bogus - the arguments to copyArray
  were the wrong way around, which meant that corruption was very likely
  to occur by overwriting the end of the buffer in the first argument.
  
  This definitely fixes #1736.  The other two bugs, #2169 and #2240 are
  harder to reproduce, but we can see how they could occur: in the case
  of #2169, the options parser is seeing the contents of an old buffer,
  and in the case of #2240, appendStringBuffer is corrupting an
  interface file in memory, since strng buffers and interface files are
  both allocated in the pinned region of memory.

    M ./compiler/utils/StringBuffer.lhs -4 +6

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20080707095836-12142-4efc383424f71377d2a7abe3196aa23557553164.gz

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to