a2 / MessagePack.swift

It's like JSON, but fast and small…and Swift! – msgpack.org[Swift]

Home Page:http://msgpack.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unpacking arrays with count 2^15 crashes

martinc opened this issue · comments

Crash at line 297 of MessagePack:
let truncated = UInt16(bitPattern: Int16(count))

Swift won't cast to Int16 when count value is >= 32768

Fixed in 3201c20 and ca739ae.