diff options
author | Oxore <oxore@protonmail.com> | 2023-06-04 21:58:39 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-06-04 23:26:13 +0300 |
commit | a3f3fb052678b9cf1f80bbdc72c42afc3705ac0b (patch) | |
tree | f45953c256f4e463f073afcdc920c916afc4c0d1 /data_buffer.cpp | |
parent | b5c24afbc10a36f65e73d5ef2100da4ff173a109 (diff) |
Add initial support of ELF files
Diffstat (limited to 'data_buffer.cpp')
-rw-r--r-- | data_buffer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/data_buffer.cpp b/data_buffer.cpp index e691b97..33cb0b3 100644 --- a/data_buffer.cpp +++ b/data_buffer.cpp @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: Unlicense + */ + #include "data_buffer.h" #include <cassert> @@ -5,6 +8,7 @@ void DataBuffer::Expand(size_t new_size) { + assert(buffer); if (new_size <= buffer_size) { return; } |