mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
Resolved int overflow
This commit is contained in:
parent
157e910103
commit
031e23cdea
1 changed files with 1 additions and 1 deletions
|
|
@ -1120,7 +1120,7 @@ func (b *Bitmap) unmarshalPilosaRoaring(data []byte) error {
|
|||
|
||||
// Read key count in bytes sizeof(cookie)+sizeof(flag):(sizeof(cookie)+sizeof(uint32)).
|
||||
keyN := binary.LittleEndian.Uint32(data[3+1 : 8])
|
||||
if len(data) < headerBaseSize+int(keyN)*12 {
|
||||
if uint32(len(data)) < headerBaseSize+keyN*12 {
|
||||
return fmt.Errorf("malformed bitmap, key-cardinality not provided for %d containers", int(keyN)/12)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue