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
{{ message }}
Repository navigation
Buffer.writeInt{L,B}E generates wrong bytes for some negative integers #3992
The common Buffer implementation for writing integer values uses a rather opaque algorithm that involves carrying a -1 adjustment into high bytes when converting negative integers. The adjustment is improperly applied when lower bytes are zero.
Activity
Layout: provide fix for node issue 3992
patchIssue3992: decouple from Layout module
buffer: fix writeInt{B,L}E for some neg values
buffer: fix writeInt{B,L}E for some neg values
buffer: fix writeInt{B,L}E for some neg values
buffer: fix writeInt{B,L}E for some neg values
Layout: provide fix for node issue 3992
patchIssue3992: decouple from Layout module
buffer: fix writeInt{B,L}E for some neg values