ssl: Correct handling of bad input to premaster_secret calculation
ssl: Correct handling of bad input to premaster_secret calculation

alert records needs to be thrown from
ssl_handshake:premaster_secret/[2/3] so that operations will end up in
the catch clause of the invokation of certify_client_key_exchange/3 in
ssl_connection.erl, and hence terminate gracefully and not continue to try
and calculate the master secret with invalid inputs and crash.

emacsmirror/erlang,stolen/otp,sitexa/otp,klarna/otp,johanclaesson/otp,getong/otp,ader1990/otp,getong/otp,vinoski/otp,uabboli/otp,platinumthinker/otp,vic/otp,goertzenator/otp,awetzel/otp,potatosalad/otp,legoscia/otp,weisslj/otp,enikki/otp,entropiae/otp,dumbbell/otp,erlang/otp,sitexa/otp,g-andrade/otp,fenollp/otp,mujiatong/otp,entropiae/otp,basho/otp,psyeugenic/otp,marquisthunder/otp,lhslll/otp,g-andrade/otp,saleyn/otp,marquisthunder/otp,aboroska/otp,lhslll/otp,electricimp/otp,johanclaesson/otp,yangchengjian/otp,getong/otp,lhslll/otp,basho/otp,paulcager/otp,jemsbhai/otp,g-andrade/otp,VincentHHL/otp,Teino1978-Corp/otp,getong/otp,RoadRunnr/otp,saleyn/otp,potatosalad/otp,benoitc/otp-1,beni55/otp,rlipscombe/otp,awetzel/otp,aboroska/otp,RichMorin/otp,msantos/otp,electricimp/otp,lrascao/otp,VincentHHL/otp,isvilen/otp,benoitc/otp-1,paladim/otp,msantos/otp,RGafiyatullin/otp,getong/otp,bsmr-erlang/otp,RGafiyatullin/otp,matwey/otp,psyeugenic/otp,sammoth-wazoku/otp,lemenkov/otp,vladdu/otp,benoitc/otp-1,isvilen/otp,platinumthinker/otp,yangchengjian/otp,saleyn/otp,rlipscombe/otp,dgud/otp,matwey/otp,enikki/otp,RoadRunnr/otp,massemanet/otp,sdebnath/otp,jemsbhai/otp,isvilen/otp,krishnakumar4a4/otp,lianghaivv/otp,bugs-erlang-org/otp,theom/otp,getong/otp,fenollp/otp,uabboli/otp,derek121/otp,emile/otp,jemsbhai/otp,schlagert/otp,weisslj/otp,goertzenator/otp,benoitc/otp-1,bsmr-erlang/otp,psyeugenic/otp,awetzel/otp,vladdu/otp,electricimp/otp,paulcager/otp,schlagert/otp,isvilen/otp,riverrun/otp,cobusc/otp,platinumthinker/otp,erlang/otp,platinumthinker/otp,bugs-erlang-org/otp,kvakvs/otp,dumbbell/otp,jemsbhai/otp,lrascao/otp,mujiatong/otp,lightcyphers/otp,jinshana/otp,Teino1978-Corp/erlang-otp,emile/otp,erlang/otp,RichMorin/otp,dumbbell/otp,jamesruan/otp,riverrun/otp,lhslll/otp,enikki/otp,ahmedshafeeq/otp,vinoski/otp,NOMORECOFFEE/otp,haguenau/otp,mikpe/otp,gjaldon/otp,lantti/otp,cnbin/otp,ader1990/otp,lucafavatella/otp,derek121/otp,johanclaesson/otp,yangchengjian/otp,weisslj/otp,bugs-erlang-org/otp,Teino1978-Corp/erlang-otp,isvilen/otp,falkevik/otp,hairyhum/otp,paulcager/otp,rlipscombe/otp,aboroska/otp,sdebnath/otp,lucafavatella/otp,schlagert/otp,paulcager/otp,gjaldon/otp,weisslj/otp,gjaldon/otp,fenollp/otp,gjaldon/otp,lightcyphers/otp,weisslj/otp,cnbin/otp,emacsmirror/erlang,rlipscombe/otp,bugs-erlang-org/otp,cnbin/otp,emile/otp,uabboli/otp,lianghaivv/otp,lhslll/otp,RoadRunnr/otp,dumbbell/otp,electricimp/otp,basho/otp,jinshana/otp,saleyn/otp,c-rack/otp,RGafiyatullin/otp,GinjaNinja32/otp,mujiatong/otp,neeraj9/otp,dumbbell/otp,release-project/otp,release-project/otp,lhslll/otp,mujiatong/otp,basho/otp,bjorng/otp,riverrun/otp,krishnakumar4a4/otp,electricimp/otp,potatosalad/otp,emile/otp,goertzenator/otp,uabboli/otp,lightcyphers/otp,johanclaesson/otp,sdebnath/otp,vladdu/otp,haguenau/otp,mujiatong/otp,awetzel/otp,riverrun/otp,sitexa/otp,lianghaivv/otp,goertzenator/otp,cnbin/otp,erlang/otp,fenollp/otp,NOMORECOFFEE/otp,bsmr-erlang/otp,haguenau/otp,paulcager/otp,jj1bdx/otp,sammoth-wazoku/otp,Teino1978-Corp/erlang-otp,bugs-erlang-org/otp,lemenkov/otp,falkevik/otp,aboroska/otp,tuncer/otp,matwey/otp,RGafiyatullin/otp,ahmedshafeeq/otp,lantti/otp,palas/otp,Teino1978-Corp/erlang-otp,sammoth-wazoku/otp,release-project/otp,lightcyphers/otp,lianghaivv/otp,hairyhum/otp,cobusc/otp,johanclaesson/otp,lrascao/otp,vic/otp,ahmedshafeeq/otp,tuncer/otp,entropiae/otp,lemenkov/otp,VincentHHL/otp,lrascao/otp,bernardd/otp,cobusc/otp,psyeugenic/otp,kvakvs/otp,emacsmirror/erlang,mikpe/otp,cobusc/otp,yangchengjian/otp,beni55/otp,derek121/otp,klarna/otp,tuncer/otp,lightcyphers/otp,dumbbell/otp,getong/otp,emacsmirror/erlang,matwey/otp,massemanet/otp,jamesruan/otp,legoscia/otp,benoitc/otp-1,yangchengjian/otp,bsmr-erlang/otp,benoitc/otp-1,bernardd/otp,ferd/otp,vinoski/otp,jj1bdx/otp,RichMorin/otp,release-project/otp,emile/otp,emacsmirror/erlang,VincentHHL/otp,legoscia/otp,goertzenator/otp,vladdu/otp,Teino1978-Corp/otp,dgud/otp,sdebnath/otp,krishnakumar4a4/otp,paulcager/otp,massemanet/otp,bjorng/otp,stolen/otp,kvakvs/otp,tuncer/otp,paladim/otp,aboroska/otp,RJ/otp,aboroska/otp,benoitc/otp-1,NOMORECOFFEE/otp,mikpe/otp,ahmedshafeeq/otp,kvakvs/otp,fenollp/otp,bsmr-erlang/otp,g-andrade/otp,cobusc/otp,derek121/otp,massemanet/otp,c-rack/otp,hairyhum/otp,release-project/otp,Teino1978-Corp/otp,RGafiyatullin/otp,johanclaesson/otp,paulcager/otp,RGafiyatullin/otp,jinshana/otp,rlipscombe/otp,massemanet/otp,emacsmirror/erlang,palas/otp,msantos/otp,saleyn/otp,cobusc/otp,mujiatong/otp,awetzel/otp,lrascao/otp,krishnakumar4a4/otp,bsmr-erlang/otp,marquisthunder/otp,rlipscombe/otp,palas/otp,neeraj9/otp,legoscia/otp,potatosalad/otp,dumbbell/otp,RoadRunnr/otp,tuncer/otp,vinoski/otp,erlang/otp,VincentHHL/otp,basho/otp,getong/otp,ferd/otp,c-rack/otp,mikpe/otp,cnbin/otp,basho/otp,marquisthunder/otp,bjorng/otp,lucafavatella/otp,lemenkov/otp,awetzel/otp,Teino1978-Corp/otp,stolen/otp,mikpe/otp,msantos/otp,jinshana/otp,lucafavatella/otp,riverrun/otp,getong/otp,derek121/otp,RJ/otp,lantti/otp,massemanet/otp,krishnakumar4a4/otp,ader1990/otp,awetzel/otp,massemanet/otp,theom/otp,bernardd/otp,lightcyphers/otp,vinoski/otp,vic/otp,NOMORECOFFEE/otp,fenollp/otp,RichMorin/otp,palas/otp,falkevik/otp,sitexa/otp,klarna/otp,mujiatong/otp,haguenau/otp,aboroska/otp,jj1bdx/otp,jemsbhai/otp,cobusc/otp,enikki/otp,yangchengjian/otp,entropiae/otp,isvilen/otp,enikki/otp,release-project/otp,jj1bdx/otp,lianghaivv/otp,RJ/otp,lantti/otp,RichMorin/otp,erlang/otp,emacsmirror/erlang,g-andrade/otp,uabboli/otp,bjorng/otp,legoscia/otp,bjorng/otp,matwey/otp,massemanet/otp,lantti/otp,bjorng/otp,jinshana/otp,marquisthunder/otp,RaimoNiskanen/otp,bsmr-erlang/otp,stolen/otp,weisslj/otp,bernardd/otp,tuncer/otp,jinshana/otp,palas/otp,fenollp/otp,RichMorin/otp,potatosalad/otp,dgud/otp,neeraj9/otp,RGafiyatullin/otp,emile/otp,release-project/otp,jj1bdx/otp,bernardd/otp,goertzenator/otp,GinjaNinja32/otp,hairyhum/otp,hairyhum/otp,ferd/otp,marquisthunder/otp,marquisthunder/otp,lucafavatella/otp,derek121/otp,legoscia/otp,bjorng/otp,GinjaNinja32/otp,RichMorin/otp,rlipscombe/otp,RJ/otp,RaimoNiskanen/otp,enikki/otp,jemsbhai/otp,lightcyphers/otp,stolen/otp,kvakvs/otp,sammoth-wazoku/otp,hairyhum/otp,kvakvs/otp,haguenau/otp,vladdu/otp,lantti/otp,aboroska/otp,vic/otp,jemsbhai/otp,jemsbhai/otp,paulcager/otp,RaimoNiskanen/otp,uabboli/otp,falkevik/otp,jamesruan/otp,vic/otp,schlagert/otp,lantti/otp,RoadRunnr/otp,saleyn/otp,Teino1978-Corp/otp,goertzenator/otp,msantos/otp,paladim/otp,vinoski/otp,falkevik/otp,stolen/otp,RaimoNiskanen/otp,lantti/otp,paladim/otp,palas/otp,RoadRunnr/otp,gjaldon/otp,sdebnath/otp,RaimoNiskanen/otp,awetzel/otp,psyeugenic/otp,jj1bdx/otp,psyeugenic/otp,sitexa/otp,matwey/otp,GinjaNinja32/otp,mikpe/otp,jamesruan/otp,dgud/otp,massemanet/otp,goertzenator/otp,RoadRunnr/otp,johanclaesson/otp,dumbbell/otp,VincentHHL/otp,goertzenator/otp,Teino1978-Corp/erlang-otp,ferd/otp,sammoth-wazoku/otp,msantos/otp,vinoski/otp,theom/otp,jamesruan/otp,ahmedshafeeq/otp,lemenkov/otp,jinshana/otp,platinumthinker/otp,Teino1978-Corp/erlang-otp,lianghaivv/otp,VincentHHL/otp,paladim/otp,lhslll/otp,dgud/otp,rlipscombe/otp,paladim/otp,schlagert/otp,lightcyphers/otp,mikpe/otp,beni55/otp,saleyn/otp,c-rack/otp,haguenau/otp,schlagert/otp,electricimp/otp,benoitc/otp-1,palas/otp,dumbbell/otp,uabboli/otp,weisslj/otp,isvilen/otp,johanclaesson/otp,vladdu/otp,RaimoNiskanen/otp,ferd/otp,ahmedshafeeq/otp,fenollp/otp,potatosalad/otp,RJ/otp,neeraj9/otp,entropiae/otp,bernardd/otp,uabboli/otp,cnbin/otp,falkevik/otp,Teino1978-Corp/erlang-otp,getong/otp,hairyhum/otp,GinjaNinja32/otp,klarna/otp,vladdu/otp,riverrun/otp,weisslj/otp,bsmr-erlang/otp,jamesruan/otp,ferd/otp,ahmedshafeeq/otp,msantos/otp,sitexa/otp,sdebnath/otp,psyeugenic/otp,dgud/otp,potatosalad/otp,weisslj/otp,emacsmirror/erlang,lucafavatella/otp,sitexa/otp,entropiae/otp,RJ/otp,release-project/otp,basho/otp,GinjaNinja32/otp,rlipscombe/otp,RGafiyatullin/otp,RaimoNiskanen/otp,potatosalad/otp,c-rack/otp,ferd/otp,psyeugenic/otp,gjaldon/otp,theom/otp,RoadRunnr/otp,schlagert/otp,isvilen/otp,dgud/otp,sammoth-wazoku/otp,g-andrade/otp,klarna/otp,bugs-erlang-org/otp,jamesruan/otp,beni55/otp,basho/otp,theom/otp,theom/otp,Teino1978-Corp/otp,bjorng/otp,stolen/otp,NOMORECOFFEE/otp,falkevik/otp,bernardd/otp,vladdu/otp,yangchengjian/otp,cnbin/otp,erlang/otp,RoadRunnr/otp,jj1bdx/otp,riverrun/otp,haguenau/otp,cobusc/otp,matwey/otp,platinumthinker/otp,sdebnath/otp,GinjaNinja32/otp,paladim/otp,tuncer/otp,neeraj9/otp,jj1bdx/otp,NOMORECOFFEE/otp,erlang/otp,RaimoNiskanen/otp,RJ/otp,emile/otp,neeraj9/otp,legoscia/otp,klarna/otp,jamesruan/otp,aboroska/otp,lucafavatella/otp,bernardd/otp,mikpe/otp,ader1990/otp,g-andrade/otp,theom/otp,lianghaivv/otp,palas/otp,fenollp/otp,vinoski/otp,bjorng/otp,ahmedshafeeq/otp,RaimoNiskanen/otp,entropiae/otp,bugs-erlang-org/otp,emile/otp,erlang/otp,matwey/otp,basho/otp,kvakvs/otp,Teino1978-Corp/otp,bugs-erlang-org/otp,ferd/otp,lemenkov/otp,kvakvs/otp,potatosalad/otp,sdebnath/otp,lucafavatella/otp,bsmr-erlang/otp,RichMorin/otp,bjorng/otp,platinumthinker/otp,ader1990/otp,krishnakumar4a4/otp,neeraj9/otp,ader1990/otp,riverrun/otp,legoscia/otp,ader1990/otp,lemenkov/otp,uabboli/otp,marquisthunder/otp,falkevik/otp,legoscia/otp,vladdu/otp,krishnakumar4a4/otp,tuncer/otp,release-project/otp,electricimp/otp,gjaldon/otp,enikki/otp,yangchengjian/otp,vic/otp,g-andrade/otp,beni55/otp,vic/otp,beni55/otp,klarna/otp,vinoski/otp,msantos/otp,mikpe/otp,haguenau/otp,platinumthinker/otp,VincentHHL/otp,NOMORECOFFEE/otp,beni55/otp,mikpe/otp,klarna/otp,isvilen/otp,rlipscombe/otp,saleyn/otp,lrascao/otp,beni55/otp,c-rack/otp,cnbin/otp,GinjaNinja32/otp,isvilen/otp,Teino1978-Corp/erlang-otp,electricimp/otp,Teino1978-Corp/otp,entropiae/otp,sammoth-wazoku/otp,lianghaivv/otp,jinshana/otp,NOMORECOFFEE/otp,ferd/otp,dgud/otp,emacsmirror/erlang,electricimp/otp,falkevik/otp,emacsmirror/erlang,mujiatong/otp,lrascao/otp,dumbbell/otp,lemenkov/otp,lhslll/otp,bernardd/otp,RJ/otp,jj1bdx/otp,tuncer/otp,paladim/otp,vic/otp,enikki/otp,ader1990/otp,theom/otp,lrascao/otp,lrascao/otp,derek121/otp,emile/otp,krishnakumar4a4/otp,g-andrade/otp,g-andrade/otp,saleyn/otp,dgud/otp,derek121/otp,erlang/otp,ahmedshafeeq/otp,c-rack/otp,gjaldon/otp,matwey/otp,hairyhum/otp,sammoth-wazoku/otp,sitexa/otp,jj1bdx/otp,kvakvs/otp,c-rack/otp,schlagert/otp,dgud/otp,vinoski/otp,neeraj9/otp,potatosalad/otp,stolen/otp