]> Cypherpunks repositories - gostls13.git/commit
bytes: add a boundary test for Count of 1 byte
authorKeith Randall <khr@golang.org>
Thu, 5 Oct 2023 19:20:11 +0000 (12:20 -0700)
committerKeith Randall <khr@golang.org>
Thu, 30 Nov 2023 20:05:58 +0000 (20:05 +0000)
commit446a5dcf5a3230ce9832682d8f521071d8a34a2b
tree9dd711e5ad2b3c31e1a5e04e9d7ffdb185e7c424
parentbda1ef13f8f9954d20b712ece649776c272f8526
bytes: add a boundary test for Count of 1 byte

This bottoms out in internal/bytealg.Count, which does a fair amount
of avx shenanigans. Make sure we're not reading out of bounds.

Change-Id: Ied0e461f536f75acc24c6797f7fc74e3f3901c10
Reviewed-on: https://go-review.googlesource.com/c/go/+/533116
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
Reviewed-by: Achille Roussel <achille.roussel@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
src/bytes/boundary_test.go