Sanity check DES_enc_write buffer length
authorMatt Caswell <matt@openssl.org>
Mon, 27 Apr 2015 10:04:56 +0000 (11:04 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 30 Apr 2015 22:14:55 +0000 (23:14 +0100)
commit4ce06271aac5ebddf02854191611613af5ec83f8
tree8a4c05e0fa99042083d70bd4266200f6c120bfb8
parentc5f8cd7bc661f90dc012c9d2bae1808a4281985f
Sanity check DES_enc_write buffer length

Add a sanity check to DES_enc_write to ensure the buffer length provided
is not negative. Thanks to Kevin Wojtysiak (Int3 Solutions) and Paramjot
Oberoi (Int3 Solutions) for reporting this issue.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(cherry picked from commit 873fb39f20b6763daba226b74e83fb194924c7bf)
crypto/des/enc_writ.c