1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:34:51 -07:00
go/internal/fastwalk
Heschi Kreinick b3f10971cb internal/fastwalk: fix checkptr failure on Darwin
Darwin's syscall.Dirent is declared as larger than the kernel may
actually return. Don't assume that we can copy the whole thing out of a
buffer.

Fixes golang/go#37269

Change-Id: I7f2b273f3a14071df8b5ff5bd70e59d784f6d187
Reviewed-on: https://go-review.googlesource.com/c/tools/+/221381
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2020-02-27 19:33:42 +00:00
..
fastwalk_dirent_fileno.go imports: extract fastWalk into new package internal/fastwalk 2018-04-16 19:53:52 +00:00
fastwalk_dirent_ino.go imports: extract fastWalk into new package internal/fastwalk 2018-04-16 19:53:52 +00:00
fastwalk_dirent_namlen_bsd.go internal/fastwalk: don't cross Dirent.Reclen boundry while looking for NULL in parseDirEnt 2018-10-13 18:20:35 +00:00
fastwalk_dirent_namlen_linux.go internal/fastwalk: avoid slice bounds out of range for long file names 2018-11-12 23:16:31 +00:00
fastwalk_portable.go all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
fastwalk_test.go all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
fastwalk_unix.go internal/fastwalk: fix checkptr failure on Darwin 2020-02-27 19:33:42 +00:00
fastwalk.go all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00