mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
Making CI happy
This commit is contained in:
parent
d24a157947
commit
2d151cd41a
1 changed files with 2 additions and 2 deletions
|
|
@ -3944,7 +3944,7 @@ func (op *op) WriteTo(w io.Writer) (n int64, err error) {
|
|||
}
|
||||
|
||||
var minOpSize = 13
|
||||
var maxBatchSize = 1<<59
|
||||
var maxBatchSize = uint64(1<<59)
|
||||
|
||||
// UnmarshalBinary decodes data into an op.
|
||||
func (op *op) UnmarshalBinary(data []byte) error {
|
||||
|
|
@ -3964,7 +3964,7 @@ func (op *op) UnmarshalBinary(data []byte) error {
|
|||
if op.typ > 1 {
|
||||
// This ensures that in doing 13+op.value*8, the max int won't be exceeded and a wrap around case
|
||||
// (resulting in a negative value) won't occur in the slice indexing while writing
|
||||
if int(op.value) > maxBatchSize {
|
||||
if int(op.value) > int(maxBatchSize) {
|
||||
return fmt.Errorf("Maximum operation size exceeded")
|
||||
}
|
||||
if len(data) < int(13+op.value*8) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue