« Previous | Next » 

Revision 38f6fcd8

ID38f6fcd822103f7e896532239c60c47b8fcc7d22
Parent 338ba2bc
Child f310c0f1, 9f36c0d2

Added by Fedor Indutny almost 10 years ago

buffer: fix sign overflow in `readUIn32BE`

`|` operation takes precendence on `+`, which will result in
`new Buffer('ffffffff', 16).readUInt32BE(0)` returning `-1` instead of
`ffffffff`.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences