russellhaering / gosaml2

Pure Go implementation of SAML 2.0
Apache License 2.0
324 stars 120 forks source link

Avoid panic when the encrypted data has wrong size for CBC #195

Open fformica opened 3 months ago

fformica commented 3 months ago

/fixes https://github.com/russellhaering/gosaml2/issues/193

A simple check to return an error in the condition that would panic CryptBlocks.