From a3f3fb052678b9cf1f80bbdc72c42afc3705ac0b Mon Sep 17 00:00:00 2001 From: Oxore Date: Sun, 4 Jun 2023 21:58:39 +0300 Subject: Add initial support of ELF files --- data_buffer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'data_buffer.cpp') 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 @@ -5,6 +8,7 @@ void DataBuffer::Expand(size_t new_size) { + assert(buffer); if (new_size <= buffer_size) { return; } -- cgit v1.2.3