commit | 98e28a74e33f32bcb855e16f8d5d2016b2102129 | [log] [tgz] |
---|---|---|
author | Janos Follath <janos.follath@arm.com> | Tue May 31 14:03:54 2016 +0100 |
committer | Simon Butcher <simon.butcher@arm.com> | Thu Jun 09 13:41:28 2016 +0100 |
tree | abd3b82b6139be155d32ccb689d26bdf35cd56c5 | |
parent | f991128d40cfca5b585130702d630c12625dcc61 [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 );