]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.7] crypto/{aes,cipher}: fix panic in CBC on s390x when src length...
authorMichael Munday <munday@ca.ibm.com>
Thu, 13 Oct 2016 21:08:54 +0000 (17:08 -0400)
committerChris Broadfoot <cbro@golang.org>
Mon, 17 Oct 2016 20:25:13 +0000 (20:25 +0000)
commitf0377a2851f13eda1993fd92d3f55d23884bdb83
tree67492fbeddcb9ec3c23a855e8b05431c5002cb6d
parent2287d95e9b130821b61c34afb79d8541268acd9b
[release-branch.go1.7] crypto/{aes,cipher}: fix panic in CBC on s390x when src length is 0

Adds a test to check that block cipher modes accept a zero-length
input.

Fixes #17435.

Change-Id: Ie093c4cdff756b5c2dcb79342e167b3de5622389
Reviewed-on: https://go-review.googlesource.com/31070
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-on: https://go-review.googlesource.com/31291
Reviewed-by: Michael Munday <munday@ca.ibm.com>
Run-TryBot: Chris Broadfoot <cbro@golang.org>
src/crypto/aes/cbc_s390x.go
src/crypto/cipher/cipher_test.go