]> Cypherpunks repositories - gostls13.git/commit
syscall: enforce minimum buffer size to call ReadDirent
authorKeith Randall <keithr@alum.mit.edu>
Thu, 11 Apr 2019 16:09:39 +0000 (09:09 -0700)
committerKeith Randall <khr@golang.org>
Thu, 11 Apr 2019 16:25:40 +0000 (16:25 +0000)
commit770f2a17d28ae9311331692ff5e7e5950ec2c267
treee1884f689fbd9a17fe480016048ac1c3bc0afe7e
parent3cb92fcba71f9c0d64b3b714fc92870065848345
syscall: enforce minimum buffer size to call ReadDirent

freebsd and netbsd require a minimum buffer size of 1K.

Note this doesn't quite fix freebsd, it has other bugs,
I'll file a separate issue.

Fixes #31403

Change-Id: I9d7e78f6d30859b34715afadc4b8bd3b1ecc606b
Reviewed-on: https://go-review.googlesource.com/c/go/+/171757
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/syscall/dirent_bsd_test.go