| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This shouldn't even happen if the header is still intact, but seemingly
it can: #1983 so be robust as possible.
|
|
|
|
|
|
|
|
|
|
|
| |
Avoid throwing base Botan::Exception type, as it is difficult to
determine what the error is in that case.
Add Exception::error_code and Exception::error_type which allows
(for error code) more information about the error and (for error type)
allows knowing the error type without requiring a sequence of catches.
See GH #1742
|
|
|
|
| |
Closes GH #1557
|
|
|
|
|
|
|
|
| |
If a function returning variable length output was called with a
null output buffer but a non-zero output buffer length, FFI layer
would call memset(nullptr, 0, buffer_len) and crash.
Caught by Coverity.
|
|
|
|
| |
No reason given we know the message is going to be thrown away.
|
|
|
|
| |
Saves about 300 Kb of code space in the FFI object files
|
|
|
|
|
| |
Previously safe_get(x) where x was null would return an error
about an exception being thrown, instead of a null pointer error.
|
| |
|
| |
|
|
|
|
| |
GH #983
|
|
|
|
| |
Notable reductions in code size, stack size and function call overhead.
|
|
|
|
|
|
|
| |
Generally speaking reinterpret_cast is sketchy stuff. But the
special case of char*/uint8_t* is both common and safe. By
isolating those, the remaining (likely sketchy) cases are easier
to grep for.
|
|
|
|
| |
Internal only headers but Sonar doesn't know that
|
| |
|
| |
|
|
|
|
| |
Flagged by Sonar and quite reasonable
|
|
|
|
|
| |
Done by a perl script which converted all classes to final, followed
by selective reversion where it caused compilation failures.
|
|
|
|
|
|
| |
ISO C++ reserves names with double underscores in them
Closes #512
|
|
|
|
|
|
| |
As we do inherit from it, and delete through the base pointer.
Found by Coverity scanner.
|
|
It was getting pretty big and would get worse over time, eg whenver
I get around to adding TLS support.
|