diff options
| author | Taras Madan <tarasmadan@google.com> | 2023-02-23 14:28:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-23 14:28:18 +0100 |
| commit | 4359978ef22a22ddd5a19adf18cbc80cb44244fb (patch) | |
| tree | 7952da94e27417b39ddf952d9e0bab431dafc4c5 /sys/syz-extract/fetch.go | |
| parent | 9e2ebb3c174f1e168bc1fbadd5f02f2e25e314fc (diff) | |
all: ioutil is deprecated in go1.19 (#3718)
Diffstat (limited to 'sys/syz-extract/fetch.go')
| -rw-r--r-- | sys/syz-extract/fetch.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/syz-extract/fetch.go b/sys/syz-extract/fetch.go index 12c2f5d7d..dd5123b31 100644 --- a/sys/syz-extract/fetch.go +++ b/sys/syz-extract/fetch.go @@ -8,7 +8,7 @@ import ( "debug/elf" "encoding/binary" "fmt" - "io/ioutil" + "io" "os" "regexp" "strconv" @@ -176,7 +176,7 @@ func extractFromELF(binFile string, targetEndian binary.ByteOrder) ([]uint64, er if sec.Name != "syz_extract_data" { continue } - data, err := ioutil.ReadAll(sec.Open()) + data, err := io.ReadAll(sec.Open()) if err != nil { return nil, err } |
