Skip to content

Commit a85e7a8

Browse files
committed
Fix heap corruption in Encoder
The defines were not correctly handled because config.h was not included
1 parent 11bb066 commit a85e7a8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/encoder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* file that was distributed with this source code.
88
*/
99

10-
#include "lcf/config.h"
1110
#include "lcf/encoder.h"
1211
#include "lcf/reader_util.h"
1312
#include "lcf/scope_guard.h"

src/lcf/encoder.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
#ifndef LCF_ENCODER_H
1111
#define LCF_ENCODER_H
12+
13+
#include "lcf/config.h"
1214
#include <vector>
1315
#include <string>
1416

0 commit comments

Comments
 (0)