Skip to content

Commit

Permalink
Fix a crash with a link
Browse files Browse the repository at this point in the history
The cmark file parser.h was missing a #include. This resulted in the compiler generating bad code for a reference to the mem struct. This caused men->free() to actually call mem->xcalloc() in the reference_free() function, which caused the crash. This has been fixed in the cmark project source code.
  • Loading branch information
phoney committed Mar 25, 2019
1 parent 8d0dcae commit ea3df18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/cmark/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define CMARK_AST_H

#include <stdio.h>
#include "references.h"
#include "node.h"
#include "buffer.h"
#include "memory.h"
Expand Down

0 comments on commit ea3df18

Please sign in to comment.