Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
b201dcb5
Commit
b201dcb5
authored
May 27, 2010
by
Bill King
Browse files
Fix issues in botan shown up by a coverity scan
Reviewed-by: kh
parent
ed018f69
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/libs/3rdparty/botan/src/alloc/mem_pool/mem_pool.cpp
View file @
b201dcb5
...
...
@@ -180,7 +180,7 @@ void Pooling_Allocator::deallocate(void* ptr, u32bit n)
const
u32bit
BITMAP_SIZE
=
Memory_Block
::
bitmap_size
();
const
u32bit
BLOCK_SIZE
=
Memory_Block
::
block_size
();
if
(
ptr
==
0
&&
n
==
0
)
if
(
ptr
==
0
||
n
==
0
)
return
;
Mutex_Holder
lock
(
mutex
);
...
...
src/libs/3rdparty/botan/src/pk_pad/emsa2/emsa2.cpp
View file @
b201dcb5
...
...
@@ -103,8 +103,9 @@ EMSA2::EMSA2(HashFunction* hash_in) : hash(hash_in)
if
(
hash_id
==
0
)
{
std
::
string
hashname
=
hash
->
name
();
delete
hash
;
throw
Encoding_Error
(
"EMSA2 cannot be used with "
+
hash
->
name
()
);
throw
Encoding_Error
(
"EMSA2 cannot be used with "
+
hashname
);
}
}
...
...
src/libs/3rdparty/botan/src/rng/randpool/randpool.cpp
View file @
b201dcb5
...
...
@@ -186,10 +186,11 @@ Randpool::Randpool(BlockCipher* cipher_in,
!
cipher
->
valid_keylength
(
OUTPUT_LENGTH
)
||
!
mac
->
valid_keylength
(
OUTPUT_LENGTH
))
{
std
::
string
ciphername
=
cipher
->
name
(),
macname
=
mac
->
name
();
delete
cipher
;
delete
mac
;
throw
Internal_Error
(
"Randpool: Invalid algorithm combination "
+
cipher
->
name
()
+
"/"
+
mac
->
name
()
);
ciphername
+
"/"
+
macname
);
}
buffer
.
create
(
BLOCK_SIZE
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment