Fossil

Diff
Login

Differences From Artifact [fcd8470380]:

To Artifact [c83be71445]:


72
73
74
75
76
77
78

79
80

81
82
83
84
85
86
87
88
89
90
72
73
74
75
76
77
78
79
80

81



82
83
84
85
86
87
88







+

-
+
-
-
-







int LLVMFuzzerTestOneInput(const uint8_t *aData, size_t nByte){
  Blob in, out;
  blob_init(&in, 0, 0);
  blob_append(&in, (char*)aData, (int)nByte);
  blob_zero(&out);
  switch( eFuzzType ){
    case FUZZ_WIKI: {
      Blob title = BLOB_INITIALIZER;
      wiki_convert(&in, &out, 0);
      break;
      blob_reset(&out);
    }
    case FUZZ_MARKDOWN: {
      Blob title = BLOB_INITIALIZER;
      markdown_to_html(&in, &title, &out);
      blob_reset(&title);
      break;
    }
  }
  blob_reset(&in);
  blob_reset(&out);