logo       

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

lang.haskell.glasgow.bugs

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

#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_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise