Update dependencies (#5518)
This commit is contained in:
3
vendor/github.com/open-policy-agent/opa/internal/wasm/encoding/reader.go
generated
vendored
3
vendor/github.com/open-policy-agent/opa/internal/wasm/encoding/reader.go
generated
vendored
@@ -9,7 +9,6 @@ import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/open-policy-agent/opa/internal/leb128"
|
||||
"github.com/open-policy-agent/opa/internal/wasm/constant"
|
||||
@@ -206,7 +205,7 @@ func readSections(r io.Reader, m *module.Module) error {
|
||||
}
|
||||
|
||||
func readCustomSection(r io.Reader, name string, s *[]module.CustomSection) error {
|
||||
buf, err := ioutil.ReadAll(r)
|
||||
buf, err := io.ReadAll(r)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
2
vendor/github.com/open-policy-agent/opa/internal/wasm/encoding/writer.go
generated
vendored
2
vendor/github.com/open-policy-agent/opa/internal/wasm/encoding/writer.go
generated
vendored
@@ -229,7 +229,7 @@ func writeFunctionSection(w io.Writer, s module.FunctionSection) error {
|
||||
}
|
||||
|
||||
for _, idx := range s.TypeIndices {
|
||||
if err := leb128.WriteVarUint32(&buf, uint32(idx)); err != nil {
|
||||
if err := leb128.WriteVarUint32(&buf, idx); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user