oscbyspro / Numberick

An arithmagick overhaul in Swift
Apache License 2.0
15 stars 3 forks source link

`StaticString` decoding zero fix #95

Closed oscbyspro closed 1 year ago

oscbyspro commented 1 year ago

There's a missing bounds check in the radix decoding method, such that if the first and only non-sign character is zero, then there's a subscript precondition failure. So, basically, ("+0", "-0", and "0") don't work in v0.12.0.