Skip to content

Commit

Permalink
decode check for signature_algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Jan 15, 2025
1 parent 2a4fd0c commit c067baa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tls/Network/TLS/Extension.hs
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ decodeSignatureAlgorithms = runGetMaybe $ do
getList (fromIntegral len) (getSignatureHashAlgorithm >>= \sh -> return (2, sh))
leftoverLen <- remaining
when (leftoverLen /= 0) $ fail "decodeSignatureAlgorithms: broken length"
when (null sas) $ fail "signature algorithms are empty"
return $ SignatureAlgorithms sas

------------------------------------------------------------
Expand Down

0 comments on commit c067baa

Please sign in to comment.