1
0
mirror of https://github.com/golang/go synced 2024-11-08 14:46:20 -07:00
go/src/hash
Russ Cox 5ef78c4d84 hash/crc32: fix race between lazy Castagnoli init and Update/Write
The switch on tab is checking tab == castagnoliTable,
but castagnoliTable can change value during a concurrent
call to MakeTable.

Fixes #41911.

Change-Id: I6124dcdbf33e17fe302baa3e1aa03202dec61b4c
Reviewed-on: https://go-review.googlesource.com/c/go/+/261639
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2020-10-13 00:31:47 +00:00
..
adler32
crc32 hash/crc32: fix race between lazy Castagnoli init and Update/Write 2020-10-13 00:31:47 +00:00
crc64
fnv
maphash
example_test.go
hash.go
marshal_test.go
test_cases.txt
test_gen.awk