mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
fixed off by one
This commit is contained in:
parent
0d36ce0799
commit
96caba59d2
@ -23,7 +23,7 @@ var parseBits = function(data, bits, offset, callback) {
|
||||
}
|
||||
|
||||
var result = 0;
|
||||
if ((offset % 8) + bits > 8) {
|
||||
if ((offset % 8) + bits >= 8) {
|
||||
result = callback(0, data[offsetBytes] & mask, firstBits);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user