diff options
author | Jack Lloyd <[email protected]> | 2017-08-29 11:06:59 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-08-29 11:06:59 -0400 |
commit | fc822faaf54624e4721abf5435f24b720c477b3e (patch) | |
tree | 4f5538db3f0ce43b004ea2d51f88d4ea2e33f5c2 /src | |
parent | b813d8ba8b0a7928f8bf1deffd014fd76bb84c5d (diff) |
Avoid `throw new Exception`
Caught by Sonar, once I managed to wade through the noise.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/pubkey/mce/polyn_gf2m.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/mce/polyn_gf2m.cpp b/src/lib/pubkey/mce/polyn_gf2m.cpp index f4fd88f5d..ba80f8d4a 100644 --- a/src/lib/pubkey/mce/polyn_gf2m.cpp +++ b/src/lib/pubkey/mce/polyn_gf2m.cpp @@ -128,7 +128,7 @@ polyn_gf2m::polyn_gf2m(const uint8_t* mem, uint32_t mem_len, std::shared_ptr<GF2 { if(mem_len % sizeof(gf2m)) { - throw new Botan::Decoding_Error("illegal length of memory to decode "); + throw Botan::Decoding_Error("illegal length of memory to decode "); } uint32_t size = (mem_len / sizeof(this->coeff[0])) ; |