Skip to content

Commit

Permalink
Fix for snudown-validator
Browse files Browse the repository at this point in the history
  • Loading branch information
debuggio committed Apr 27, 2017
1 parent a7375dc commit 877d9f6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions fuzzing/snudown-validator.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@

#define SNUDOWN_VERSION "1.3.2"

static struct snudown_renderer sundown[RENDERER_COUNT];

void init_default_renderer() {
struct snudown_renderer *renderer = get_default_renderer();
sundown[RENDERER_USERTEXT] = *renderer;
}

void init_wiki_renderer() {
struct snudown_renderer *renderer = get_wiki_renderer();
sundown[RENDERER_WIKI] = *renderer;
}

void init_default_renderer_without_links() {
struct snudown_renderer *renderer = get_default_renderer_without_links();
sundown[RENDERER_USERTEXT_WITHOUTLINKS] = *renderer;
}

void
snudown_md(struct buf *ob, const uint8_t *document, size_t doc_size, int wiki_mode)
{
Expand Down

1 comment on commit 877d9f6

@lan17
Copy link

@lan17 lan17 commented on 877d9f6 Apr 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am proud of you!

Please sign in to comment.