From a85e7a88cce06a5dcd5e9a8fa8d4046add7d12eb Mon Sep 17 00:00:00 2001 From: Ghabry Date: Tue, 5 Dec 2023 18:17:36 +0100 Subject: [PATCH] Fix heap corruption in Encoder The defines were not correctly handled because config.h was not included --- src/encoder.cpp | 1 - src/lcf/encoder.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/encoder.cpp b/src/encoder.cpp index c16b0bf9..31d89a4a 100644 --- a/src/encoder.cpp +++ b/src/encoder.cpp @@ -7,7 +7,6 @@ * file that was distributed with this source code. */ -#include "lcf/config.h" #include "lcf/encoder.h" #include "lcf/reader_util.h" #include "lcf/scope_guard.h" diff --git a/src/lcf/encoder.h b/src/lcf/encoder.h index c3b9f8f8..4ebdbd49 100644 --- a/src/lcf/encoder.h +++ b/src/lcf/encoder.h @@ -9,6 +9,8 @@ #ifndef LCF_ENCODER_H #define LCF_ENCODER_H + +#include "lcf/config.h" #include #include