[GHC] #869: Foreign.C.String.withCStringLen doesn't terminate C string by NUL

GHC trac at galois.com
Fri Aug 18 09:45:35 EDT 2006


#869: Foreign.C.String.withCStringLen doesn't terminate C string by NUL
-------------------------------+--------------------------------------------
    Reporter:  guest           |        Owner:         
        Type:  bug             |       Status:  new    
    Priority:  normal          |    Milestone:         
   Component:  libraries/base  |      Version:  6.4.2  
    Severity:  normal          |     Keywords:         
          Os:  Linux           |   Difficulty:  Unknown
Architecture:  x86             |  
-------------------------------+--------------------------------------------
Although the document of withCStringLen says "Marshal a Haskell string
 into a NUL terminated C string using temporary storage", it seems that C
 string is not terminated by NUL.


 {{{
 $ uname -a
 Linux li9-154 2.4.29-linode39-1um #1 Wed Jan 19 12:22:14 EST 2005 i686
 GNU/Linux
 $ ghc -V
 The Glorious Glasgow Haskell Compilation System, version 6.4.2
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/869>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list