commit | ce52d7823c0c8dc4011ba841cda28050ced336fb | [log] [tgz] |
---|---|---|
author | Janos Follath <janos.follath@arm.com> | Tue May 31 14:03:54 2016 +0100 |
committer | Simon Butcher <simon.butcher@arm.com> | Tue Jun 07 14:52:35 2016 +0100 |
tree | 31e13c609565e8270a18ed73d0fe6e74c030ad06 | |
parent | 78da223f68e039f9e94cdaff35314779b9d126a9 [diff] [blame] |
Address user reported coverity issues.
diff --git a/library/base64.c b/library/base64.c index 3432e5f..5cb12cb 100644 --- a/library/base64.c +++ b/library/base64.c
@@ -97,7 +97,7 @@ n *= 4; - if( dlen < n + 1 ) + if( ( dlen < n + 1 ) || ( NULL == dst ) ) { *olen = n + 1; return( MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL );