You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: 27.0-rc1 (and older versions, up to 624d29d commit, but maybe i'm wrong).
Language: Python
OS: Linux
Python 3.11, protobuf installed from pip with --cpp_implementation flag
Big uint32_t values from protobuf (encoded by C++ code) from python side is are negative
And problem is here: PyLong_FromSsize_t should be replaced by PyLong_FromUnsignedLong (or PyLong_FromSize_t, i'm not sure).
The text was updated successfully, but these errors were encountered:
I'm sorry, i did forget about one thing: it's but affects only 32-bit platforms like i386/arm32 :(
But i did reproduce it with simple examples and little bit of docker magic: protobuf_bug_example.tar.gz
This archive contains simple C++ message generator and python message parser which check parsed uint32 value from message; Dockerfile for environment build and run.sh, which run all this stuff properly.
Version: 27.0-rc1 (and older versions, up to 624d29d commit, but maybe i'm wrong).
Language: Python
OS: Linux
Python 3.11, protobuf installed from pip with --cpp_implementation flag
Big uint32_t values from protobuf (encoded by C++ code) from python side is are negative
And problem is here: PyLong_FromSsize_t should be replaced by PyLong_FromUnsignedLong (or PyLong_FromSize_t, i'm not sure).
The text was updated successfully, but these errors were encountered: