[swift-dev] quick, spot the UB in this code:

Drew Crawford drew at sealedabstract.com
Thu Apr 7 00:03:39 CDT 2016


> On Apr 6, 2016, at 11:51 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> 
> This operation converts a C string to a Swift string, so (2) is a non-starter.


Then it is inappropriately named.  The name of the constructor is `validatingUTF8`, not `cString`.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160407/0cd28e1b/attachment.html>


More information about the swift-dev mailing list