mirror of
https://github.com/FiloSottile/age.git
synced 2026-09-19 22:44:33 +00:00
internal/stream: reject trailing data (no EOF) after end of stream
This commit is contained in:
@@ -155,6 +155,9 @@ func testVector(t *testing.T, test []byte) {
|
||||
if err != nil {
|
||||
if expect == "payload failure" {
|
||||
t.Log(err)
|
||||
if payloadHash != nil && sha256.Sum256(out) != *payloadHash {
|
||||
t.Error("partial payload hash mismatch")
|
||||
}
|
||||
return
|
||||
}
|
||||
t.Fatalf("expected %s, got: %v", expect, err)
|
||||
|
||||
Reference in New Issue
Block a user