Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
proton-c-0.27.1
-
None
Description
Python representations of:
proton.ubyte
proton.ushort
proton.uint
proton.ulong
can hold a negative value, even though they should be unsigned.
import proton
print proton.ubyte(-1)
print proton.ushort(-1)
print proton.uint(-1)
print proton.ulong(-1)
results in
-1
-1
-1
-1
If an unsigned type containing a negative value is used in a message in any context, it can cause an Overflow exception to be thrown within Proton.