Skip to content

Commit

Permalink
Update tool/teleport-update/versions.go
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo Shaka <[email protected]>
  • Loading branch information
sclevine and hugoShaka authored Sep 9, 2024
1 parent 728fa9c commit bdcd5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/teleport-update/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (tv *TeleportVersion) Create(ctx context.Context, uriTmpl, version string)
}
}()

// Avoid gzip bomb by validating checksum before any decompression
// Check integrity before decompression
if !bytes.Equal(newSum, pathSum) {
return trace.Errorf("mismatched checksum, download possibly corrupt")
}
Expand Down

0 comments on commit bdcd5f6

Please sign in to comment.