{"action":"created","comment":{"url":"https://api.github.com/repos/google/oss-fuzz/pulls/comments/194583041","pull_request_review_id":127779507,"id":194583041,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDU4MzA0MQ==","diff_hunk":"@@ -0,0 +1,91 @@\n+// Fuzzing of AV1 decoder.\n+\n+#include <stdio.h>\n+#include <stdlib.h>\n+#include <string.h>\n+\n+#include \"aom/aom_decoder.h\"\n+#include \"aom/aomdx.h\"\n+#include \"aom_ports/mem_ops.h\"\n+#include \"aom/common/ivfdec.h\"\n+\n+// TODO(urvang): Create a 2nd fuzz target that defines DECODE_MODE_threaded.\n+#define DECODE_MODE_serial\n+\n+static const char *const kIVFSignature = \"DKIF\";\n+\n+extern \"C\" void usage_exit(void) { exit(EXIT_FAILURE); }\n+\n+extern \"C\" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {\n+  FILE *const file = fmemopen((void *)data, size, \"rb\");\n+  if (file == nullptr) {\n+    fprintf(stderr, \"Failed to get file stream.\\n\");\n+    return 0;\n+  }\n+\n+  char header[32];\n+  if (fread(header, 1, 32, file) != 32) {\n+    fprintf(stderr, \"Failed to get file header.\\n\");\n+    return 0;\n+  }\n+  if (memcmp(kIVFSignature, header, 4) != 0) {\n+    fprintf(stderr, \"Wrong IVF signature.\\n\");\n+    // Do not terminate.\n+  }\n+  if (mem_get_le16(header + 4) != 0) {\n+    fprintf(stderr, \"Wrong IVF version.\\n\");\n+    // Do not terminate.\n+  }\n+\n+  const AvxInterface *decoder = get_aom_decoder_by_name(\"av1\");\n+  if (decoder == nullptr) {\n+    fprintf(stderr, \"Unknown input codec.\\n\");","path":"projects/libaom/av1_dec_fuzzer.cc","position":42,"original_position":42,"commit_id":"31bf080c64cbd7d2f6dc7b2ff2bbff184b94e82b","original_commit_id":"31bf080c64cbd7d2f6dc7b2ff2bbff184b94e82b","user":{"login":"jonathanmetzman","id":31354670,"node_id":"MDQ6VXNlcjMxMzU0Njcw","avatar_url":"https://avatars0.githubusercontent.com/u/31354670?v=4","gravatar_id":"","url":"https://api.github.com/users/jonathanmetzman","html_url":"https://github.com/jonathanmetzman","followers_url":"https://api.github.com/users/jonathanmetzman/followers","following_url":"https://api.github.com/users/jonathanmetzman/following{/other_user}","gists_url":"https://api.github.com/users/jonathanmetzman/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanmetzman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanmetzman/subscriptions","organizations_url":"https://api.github.com/users/jonathanmetzman/orgs","repos_url":"https://api.github.com/users/jonathanmetzman/repos","events_url":"https://api.github.com/users/jonathanmetzman/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanmetzman/received_events","type":"User","site_admin":false},"body":"It's generally a bad idea to log for non-fatal errors in a fuzzer, because the logs will be spammed with these logs.\r\n\r\nCan you change this so nothing is printed by your code when fuzzing please?\r\n\r\nAlso, please do the same elsewhere in this program. Thanks!","created_at":"2018-06-12T00:07:57Z","updated_at":"2018-06-12T00:40:55Z","html_url":"https://github.com/google/oss-fuzz/pull/1502#discussion_r194583041","pull_request_url":"https://api.github.com/repos/google/oss-fuzz/pulls/1502","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/google/oss-fuzz/pulls/comments/194583041"},"html":{"href":"https://github.com/google/oss-fuzz/pull/1502#discussion_r194583041"},"pull_request":{"href":"https://api.github.com/repos/google/oss-fuzz/pulls/1502"}}},"pull_request":{"url":"https://api.github.com/repos/google/oss-fuzz/pulls/1502","id":194118043,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0MTE4MDQz","html_url":"https://github.com/google/oss-fuzz/pull/1502","diff_url":"https://github.com/google/oss-fuzz/pull/1502.diff","patch_url":"https://github.com/google/oss-fuzz/pull/1502.patch","issue_url":"https://api.github.com/repos/google/oss-fuzz/issues/1502","number":1502,"state":"open","locked":false,"title":"oss-fuzz: add libaom project","user":{"login":"urvangjoshi","id":25193611,"node_id":"MDQ6VXNlcjI1MTkzNjEx","avatar_url":"https://avatars0.githubusercontent.com/u/25193611?v=4","gravatar_id":"","url":"https://api.github.com/users/urvangjoshi","html_url":"https://github.com/urvangjoshi","followers_url":"https://api.github.com/users/urvangjoshi/followers","following_url":"https://api.github.com/users/urvangjoshi/following{/other_user}","gists_url":"https://api.github.com/users/urvangjoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/urvangjoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urvangjoshi/subscriptions","organizations_url":"https://api.github.com/users/urvangjoshi/orgs","repos_url":"https://api.github.com/users/urvangjoshi/repos","events_url":"https://api.github.com/users/urvangjoshi/events{/privacy}","received_events_url":"https://api.github.com/users/urvangjoshi/received_events","type":"User","site_admin":false},"body":"Here is a patch to add libaom project to oss-fuzz.\r\nIncludes:\r\n- A fuzz target \r\n- Downloads seed corpus using wget.","created_at":"2018-06-11T22:14:39Z","updated_at":"2018-06-12T00:40:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"834a4c69d3517152c5e195d9c9c6fa9559ab4e9a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/oss-fuzz/pulls/1502/commits","review_comments_url":"https://api.github.com/repos/google/oss-fuzz/pulls/1502/comments","review_comment_url":"https://api.github.com/repos/google/oss-fuzz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/oss-fuzz/issues/1502/comments","statuses_url":"https://api.github.com/repos/google/oss-fuzz/statuses/31bf080c64cbd7d2f6dc7b2ff2bbff184b94e82b","head":{"label":"urvangjoshi:add_libaom","ref":"add_libaom","sha":"31bf080c64cbd7d2f6dc7b2ff2bbff184b94e82b","user":{"login":"urvangjoshi","id":25193611,"node_id":"MDQ6VXNlcjI1MTkzNjEx","avatar_url":"https://avatars0.githubusercontent.com/u/25193611?v=4","gravatar_id":"","url":"https://api.github.com/users/urvangjoshi","html_url":"https://github.com/urvangjoshi","followers_url":"https://api.github.com/users/urvangjoshi/followers","following_url":"https://api.github.com/users/urvangjoshi/following{/other_user}","gists_url":"https://api.github.com/users/urvangjoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/urvangjoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urvangjoshi/subscriptions","organizations_url":"https://api.github.com/users/urvangjoshi/orgs","repos_url":"https://api.github.com/users/urvangjoshi/repos","events_url":"https://api.github.com/users/urvangjoshi/events{/privacy}","received_events_url":"https://api.github.com/users/urvangjoshi/received_events","type":"User","site_admin":false},"repo":{"id":136394286,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYzOTQyODY=","name":"oss-fuzz","full_name":"urvangjoshi/oss-fuzz","owner":{"login":"urvangjoshi","id":25193611,"node_id":"MDQ6VXNlcjI1MTkzNjEx","avatar_url":"https://avatars0.githubusercontent.com/u/25193611?v=4","gravatar_id":"","url":"https://api.github.com/users/urvangjoshi","html_url":"https://github.com/urvangjoshi","followers_url":"https://api.github.com/users/urvangjoshi/followers","following_url":"https://api.github.com/users/urvangjoshi/following{/other_user}","gists_url":"https://api.github.com/users/urvangjoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/urvangjoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urvangjoshi/subscriptions","organizations_url":"https://api.github.com/users/urvangjoshi/orgs","repos_url":"https://api.github.com/users/urvangjoshi/repos","events_url":"https://api.github.com/users/urvangjoshi/events{/privacy}","received_events_url":"https://api.github.com/users/urvangjoshi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/urvangjoshi/oss-fuzz","description":"OSS-Fuzz - continuous fuzzing of open source software","fork":true,"url":"https://api.github.com/repos/urvangjoshi/oss-fuzz","forks_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/forks","keys_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/teams","hooks_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/hooks","issue_events_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/issues/events{/number}","events_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/events","assignees_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/assignees{/user}","branches_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/branches{/branch}","tags_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/tags","blobs_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/git/refs{/sha}","trees_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/statuses/{sha}","languages_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/languages","stargazers_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/stargazers","contributors_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/contributors","subscribers_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/subscribers","subscription_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/subscription","commits_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/commits{/sha}","git_commits_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/git/commits{/sha}","comments_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/comments{/number}","issue_comment_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/issues/comments{/number}","contents_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/contents/{+path}","compare_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/merges","archive_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/downloads","issues_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/issues{/number}","pulls_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/pulls{/number}","milestones_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/milestones{/number}","notifications_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/labels{/name}","releases_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/releases{/id}","deployments_url":"https://api.github.com/repos/urvangjoshi/oss-fuzz/deployments","created_at":"2018-06-06T22:50:49Z","updated_at":"2018-06-06T22:50:55Z","pushed_at":"2018-06-11T21:41:28Z","git_url":"git://github.com/urvangjoshi/oss-fuzz.git","ssh_url":"git@github.com:urvangjoshi/oss-fuzz.git","clone_url":"https://github.com/urvangjoshi/oss-fuzz.git","svn_url":"https://github.com/urvangjoshi/oss-fuzz","homepage":"","size":8128,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"0ab541802867ff8b7ecc1dd9675d18ad98cf95ca","user":{"login":"google","id":1342004,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDIwMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":63809205,"node_id":"MDEwOlJlcG9zaXRvcnk2MzgwOTIwNQ==","name":"oss-fuzz","full_name":"google/oss-fuzz","owner":{"login":"google","id":1342004,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDIwMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/oss-fuzz","description":"OSS-Fuzz - continuous fuzzing of open source software","fork":false,"url":"https://api.github.com/repos/google/oss-fuzz","forks_url":"https://api.github.com/repos/google/oss-fuzz/forks","keys_url":"https://api.github.com/repos/google/oss-fuzz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/oss-fuzz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/oss-fuzz/teams","hooks_url":"https://api.github.com/repos/google/oss-fuzz/hooks","issue_events_url":"https://api.github.com/repos/google/oss-fuzz/issues/events{/number}","events_url":"https://api.github.com/repos/google/oss-fuzz/events","assignees_url":"https://api.github.com/repos/google/oss-fuzz/assignees{/user}","branches_url":"https://api.github.com/repos/google/oss-fuzz/branches{/branch}","tags_url":"https://api.github.com/repos/google/oss-fuzz/tags","blobs_url":"https://api.github.com/repos/google/oss-fuzz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/oss-fuzz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/oss-fuzz/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/oss-fuzz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/oss-fuzz/statuses/{sha}","languages_url":"https://api.github.com/repos/google/oss-fuzz/languages","stargazers_url":"https://api.github.com/repos/google/oss-fuzz/stargazers","contributors_url":"https://api.github.com/repos/google/oss-fuzz/contributors","subscribers_url":"https://api.github.com/repos/google/oss-fuzz/subscribers","subscription_url":"https://api.github.com/repos/google/oss-fuzz/subscription","commits_url":"https://api.github.com/repos/google/oss-fuzz/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/oss-fuzz/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/oss-fuzz/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/oss-fuzz/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/oss-fuzz/contents/{+path}","compare_url":"https://api.github.com/repos/google/oss-fuzz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/oss-fuzz/merges","archive_url":"https://api.github.com/repos/google/oss-fuzz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/oss-fuzz/downloads","issues_url":"https://api.github.com/repos/google/oss-fuzz/issues{/number}","pulls_url":"https://api.github.com/repos/google/oss-fuzz/pulls{/number}","milestones_url":"https://api.github.com/repos/google/oss-fuzz/milestones{/number}","notifications_url":"https://api.github.com/repos/google/oss-fuzz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/oss-fuzz/labels{/name}","releases_url":"https://api.github.com/repos/google/oss-fuzz/releases{/id}","deployments_url":"https://api.github.com/repos/google/oss-fuzz/deployments","created_at":"2016-07-20T19:39:50Z","updated_at":"2018-06-11T13:57:50Z","pushed_at":"2018-06-11T23:17:00Z","git_url":"git://github.com/google/oss-fuzz.git","ssh_url":"git@github.com:google/oss-fuzz.git","clone_url":"https://github.com/google/oss-fuzz.git","svn_url":"https://github.com/google/oss-fuzz","homepage":"","size":9886,"stargazers_count":2817,"watchers_count":2817,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":477,"mirror_url":null,"archived":false,"open_issues_count":78,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":477,"open_issues":78,"watchers":2817,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/oss-fuzz/pulls/1502"},"html":{"href":"https://github.com/google/oss-fuzz/pull/1502"},"issue":{"href":"https://api.github.com/repos/google/oss-fuzz/issues/1502"},"comments":{"href":"https://api.github.com/repos/google/oss-fuzz/issues/1502/comments"},"review_comments":{"href":"https://api.github.com/repos/google/oss-fuzz/pulls/1502/comments"},"review_comment":{"href":"https://api.github.com/repos/google/oss-fuzz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/oss-fuzz/pulls/1502/commits"},"statuses":{"href":"https://api.github.com/repos/google/oss-fuzz/statuses/31bf080c64cbd7d2f6dc7b2ff2bbff184b94e82b"}},"author_association":"NONE"}}
{"actor":{"display_login":"jonathanmetzman"}}