Skip to content

Commit

Permalink
Fix heap corruption in Encoder
Browse files Browse the repository at this point in the history
The defines were not correctly handled because config.h was not included
  • Loading branch information
Ghabry committed Dec 5, 2023
1 parent 11bb066 commit a85e7a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions src/lcf/encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

#ifndef LCF_ENCODER_H
#define LCF_ENCODER_H

#include "lcf/config.h"
#include <vector>
#include <string>

Expand Down

0 comments on commit a85e7a8

Please sign in to comment.