-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: proton-c-0.27.1
-
Fix Version/s: proton-c-0.28.0
-
Component/s: python-binding
-
Labels:None
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.