summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authortb <>2023-11-06 14:50:12 +0000
committertb <>2023-11-06 14:50:12 +0000
commitd5eb0b2385353ece628a52716839606ed60399a8 (patch)
tree49f4ffb702f23c4caf1482fa6822f299b40c521d /src/lib/libc
parent88009dabc2099fe0214bf73b478c04eacfaca42a (diff)
downloadopenbsd-d5eb0b2385353ece628a52716839606ed60399a8.tar.gz
openbsd-d5eb0b2385353ece628a52716839606ed60399a8.tar.bz2
openbsd-d5eb0b2385353ece628a52716839606ed60399a8.zip
Fix a for loop bug introduced in the concurrency refactor
Due to Go's idiosyncratic semantics of for loops, tests would only run some of the test groups in the JSON file because by the time the closure is called, the array index could be changed. For example, on fast 8 core machines, the CMAC tests would run the last test group with key size 320 eight times rather than each of the eight test groups once. Make a copy of the pointer before passing it to the closure to avoid this issue. Simpler version of my initial fix from jsing
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions