Closed robertwb closed 7 years ago
Comment by scoder on 12 Sep 2015 19:08 UTC
The C-API uses Py_ssize_t
here (even the stateful decoders), so larger values should raise an exception. CPython raises OverflowError
in similar cases (e.g. PyUnicode_FromString()
).
Comment by scoder on 12 Sep 2015 20:44 UTC Fix implemented here: https://github.com/cython/cython/pull/444
Modified by scoder on 12 Sep 2015 20:45 UTC
Reported by nikratio on 11 Sep 2015 23:05 UTC The code generated by Cython 0.23.1 for the
__Pyx_decode_c_string
function triggers the following compiler warning:It'd be great if Cython generated C would compile without warnings.
This can be reproduced with pretty much any Cython file, for example:
Migrated-From: http://trac.cython.org/ticket/864