| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Move buffer_insert to mem_ops.h
|
|
|
|
| |
Closes GH #1557
|
| |
|
|
|
|
|
| |
Otherwise an integer overflow bug elsewhere could turn into a
heap overflow.
|
|
|
|
| |
Closes #1295
|
|
|
|
|
|
|
| |
Switch to calloc/free instead of new/delete - shouldn't matter since
we are only allocate integral types.
This change reduces the size of libbotan-2.so by ~300 Kb on my system.
|
|
|
|
|
|
|
| |
Lacking this seems to cause interesting issues with Apple Clang on
32-bit ARM. It seems like it implicitly defines a size_type that
is the same size as size_t, but not actually size_t, so we get an
unsigned long vs unsigned int mismatch on the type.
|
| |
|
|
|
|
|
|
|
|
|
| |
According to https://howardhinnant.github.io/allocator_boilerplate.html
we don't need most of what was in there in C++11 and later. I think
I originally wrote that code referencing a C++03 doc.
Specifically avoiding construct, destruct prevents a performance issue
in MSVC (GH #1228)
|
| |
|
|
|
|
| |
No point making someone include a deprecated header to get this.
|
|
|
|
| |
Some help from include-what-you-use
|
|
|
|
|
|
| |
ISO C++ reserves names with double underscores in them
Closes #512
|
|
|
|
|
|
| |
Introduced in 455bd2557cbb1343e59eefd97cb449f06a702c28
Found and reported by Roman Pozlevich
|
|
|
|
|
|
|
|
|
| |
* fixes for deprecated constructions in c++11 and later (explicit rule of 3/5 or implicit rule of 0 and other violations)
* `default` specifier instead of `{}` in some places(probably all)
* removal of unreachable code (for example `return` after `throw`)
* removal of compilation unit only visible, but not used functions
* fix for `throw()` specifier - used instead `BOTAN_NOEXCEPT`
* removed not needed semicolons
|
| |
|
| |
|
|
|
|
|
| |
If a non trival type was used, memory corruption could occur.
Original issue reported by Matthias Gierlings.
|
| |
|
|
|