{"action":"closed","number":937,"pull_request":{"url":"https://api.github.com/repos/tesseract-ocr/tesseract/pulls/937","id":121562287,"html_url":"https://github.com/tesseract-ocr/tesseract/pull/937","diff_url":"https://github.com/tesseract-ocr/tesseract/pull/937.diff","patch_url":"https://github.com/tesseract-ocr/tesseract/pull/937.patch","issue_url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/937","number":937,"state":"closed","locked":false,"title":"UNICHARSET: Add missing initialization","user":{"login":"stweil","id":6734573,"avatar_url":"https://avatars2.githubusercontent.com/u/6734573?v=3","gravatar_id":"","url":"https://api.github.com/users/stweil","html_url":"https://github.com/stweil","followers_url":"https://api.github.com/users/stweil/followers","following_url":"https://api.github.com/users/stweil/following{/other_user}","gists_url":"https://api.github.com/users/stweil/gists{/gist_id}","starred_url":"https://api.github.com/users/stweil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stweil/subscriptions","organizations_url":"https://api.github.com/users/stweil/orgs","repos_url":"https://api.github.com/users/stweil/repos","events_url":"https://api.github.com/users/stweil/events{/privacy}","received_events_url":"https://api.github.com/users/stweil/received_events","type":"User","site_admin":false},"body":"The member variable default_sid_ was used without being initialized.\r\n\r\nValgrind report for `tesseract --oem 1 hello.png hello`:\r\n\r\n    Conditional jump or move depends on uninitialised value(s)\r\n       at 0x14352E: BITS16::set_bit(unsigned char, unsigned char) (bits16.h:50)\r\n       by 0x143E27: WERD::set_flag(WERD_FLAGS, unsigned char) (werd.h:129)\r\n       by 0x27D053: WERD_RES::SetupWordScript(UNICHARSET const&) (pageres.cpp:381)\r\n       by 0x27CAFD: WERD_RES::SetupForRecognition(UNICHARSET const&, tesseract::Tesseract*, Pix*, int, TBOX const*, bool, bool, bool, ROW*, BLOCK const*) (pageres.cpp:316)\r\n       by 0x145903: tesseract::Tesseract::SetupWordPassN(int, tesseract::WordData*) (control.cpp:182)\r\n       by 0x145780: tesseract::Tesseract::SetupAllWordsPassN(int, TBOX const*, char const*, PAGE_RES*, GenericVector<tesseract::WordData>*) (control.cpp:168)\r\n       by 0x146293: tesseract::Tesseract::recog_all_words(PAGE_RES*, ETEXT_DESC*, TBOX const*, char const*, int) (control.cpp:336)\r\n       by 0x12F356: tesseract::TessBaseAPI::Recognize(ETEXT_DESC*) (baseapi.cpp:878)\r\n       by 0x13036D: tesseract::TessBaseAPI::ProcessPage(Pix*, int, char const*, char const*, int, tesseract::TessResultRenderer*) (baseapi.cpp:1184)\r\n       by 0x13014A: tesseract::TessBaseAPI::ProcessPagesInternal(char const*, char const*, int, tesseract::TessResultRenderer*) (baseapi.cpp:1140)\r\n       by 0x12FBCE: tesseract::TessBaseAPI::ProcessPages(char const*, char const*, int, tesseract::TessResultRenderer*) (baseapi.cpp:1040)\r\n       by 0x12C3DF: main (tesseractmain.cpp:515)\r\n     Uninitialised value was created by a heap allocation\r\n       at 0x4C2C21F: operator new(unsigned long) (vg_replace_malloc.c:334)\r\n       by 0x12D88B: tesseract::TessBaseAPI::Init(char const*, int, char const*, tesseract::OcrEngineMode, char**, int, GenericVector<STRING> const*, GenericVector<STRING> const*, bool, bool (*)(STRING const&, GenericVector<char>*)) (baseapi.cpp:320)\r\n       by 0x12D6DA: tesseract::TessBaseAPI::Init(char const*, char const*, tesseract::OcrEngineMode, char**, int, GenericVector<STRING> const*, GenericVector<STRING> const*, bool) (baseapi.cpp:284)\r\n       by 0x12C088: main (tesseractmain.cpp:440)\r\n\r\nSigned-off-by: Stefan Weil <sw@weilnetz.de>","created_at":"2017-05-19T18:58:13Z","updated_at":"2017-05-19T19:16:45Z","closed_at":"2017-05-19T19:16:44Z","merged_at":"2017-05-19T19:16:44Z","merge_commit_sha":"5a06417eb273a3cc3e5f720ca8fa4bbaa7940ae6","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/tesseract-ocr/tesseract/pulls/937/commits","review_comments_url":"https://api.github.com/repos/tesseract-ocr/tesseract/pulls/937/comments","review_comment_url":"https://api.github.com/repos/tesseract-ocr/tesseract/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/937/comments","statuses_url":"https://api.github.com/repos/tesseract-ocr/tesseract/statuses/fb863c97a9c8e9c05874af6f6fbd77923cc6f6e9","head":{"label":"stweil:fix","ref":"fix","sha":"fb863c97a9c8e9c05874af6f6fbd77923cc6f6e9","user":{"login":"stweil","id":6734573,"avatar_url":"https://avatars2.githubusercontent.com/u/6734573?v=3","gravatar_id":"","url":"https://api.github.com/users/stweil","html_url":"https://github.com/stweil","followers_url":"https://api.github.com/users/stweil/followers","following_url":"https://api.github.com/users/stweil/following{/other_user}","gists_url":"https://api.github.com/users/stweil/gists{/gist_id}","starred_url":"https://api.github.com/users/stweil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stweil/subscriptions","organizations_url":"https://api.github.com/users/stweil/orgs","repos_url":"https://api.github.com/users/stweil/repos","events_url":"https://api.github.com/users/stweil/events{/privacy}","received_events_url":"https://api.github.com/users/stweil/received_events","type":"User","site_admin":false},"repo":{"id":42475004,"name":"tesseract","full_name":"stweil/tesseract","owner":{"login":"stweil","id":6734573,"avatar_url":"https://avatars2.githubusercontent.com/u/6734573?v=3","gravatar_id":"","url":"https://api.github.com/users/stweil","html_url":"https://github.com/stweil","followers_url":"https://api.github.com/users/stweil/followers","following_url":"https://api.github.com/users/stweil/following{/other_user}","gists_url":"https://api.github.com/users/stweil/gists{/gist_id}","starred_url":"https://api.github.com/users/stweil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stweil/subscriptions","organizations_url":"https://api.github.com/users/stweil/orgs","repos_url":"https://api.github.com/users/stweil/repos","events_url":"https://api.github.com/users/stweil/events{/privacy}","received_events_url":"https://api.github.com/users/stweil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stweil/tesseract","description":"Tesseract Open Source OCR Engine (main repository)","fork":true,"url":"https://api.github.com/repos/stweil/tesseract","forks_url":"https://api.github.com/repos/stweil/tesseract/forks","keys_url":"https://api.github.com/repos/stweil/tesseract/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stweil/tesseract/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stweil/tesseract/teams","hooks_url":"https://api.github.com/repos/stweil/tesseract/hooks","issue_events_url":"https://api.github.com/repos/stweil/tesseract/issues/events{/number}","events_url":"https://api.github.com/repos/stweil/tesseract/events","assignees_url":"https://api.github.com/repos/stweil/tesseract/assignees{/user}","branches_url":"https://api.github.com/repos/stweil/tesseract/branches{/branch}","tags_url":"https://api.github.com/repos/stweil/tesseract/tags","blobs_url":"https://api.github.com/repos/stweil/tesseract/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stweil/tesseract/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stweil/tesseract/git/refs{/sha}","trees_url":"https://api.github.com/repos/stweil/tesseract/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stweil/tesseract/statuses/{sha}","languages_url":"https://api.github.com/repos/stweil/tesseract/languages","stargazers_url":"https://api.github.com/repos/stweil/tesseract/stargazers","contributors_url":"https://api.github.com/repos/stweil/tesseract/contributors","subscribers_url":"https://api.github.com/repos/stweil/tesseract/subscribers","subscription_url":"https://api.github.com/repos/stweil/tesseract/subscription","commits_url":"https://api.github.com/repos/stweil/tesseract/commits{/sha}","git_commits_url":"https://api.github.com/repos/stweil/tesseract/git/commits{/sha}","comments_url":"https://api.github.com/repos/stweil/tesseract/comments{/number}","issue_comment_url":"https://api.github.com/repos/stweil/tesseract/issues/comments{/number}","contents_url":"https://api.github.com/repos/stweil/tesseract/contents/{+path}","compare_url":"https://api.github.com/repos/stweil/tesseract/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stweil/tesseract/merges","archive_url":"https://api.github.com/repos/stweil/tesseract/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stweil/tesseract/downloads","issues_url":"https://api.github.com/repos/stweil/tesseract/issues{/number}","pulls_url":"https://api.github.com/repos/stweil/tesseract/pulls{/number}","milestones_url":"https://api.github.com/repos/stweil/tesseract/milestones{/number}","notifications_url":"https://api.github.com/repos/stweil/tesseract/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stweil/tesseract/labels{/name}","releases_url":"https://api.github.com/repos/stweil/tesseract/releases{/id}","deployments_url":"https://api.github.com/repos/stweil/tesseract/deployments","created_at":"2015-09-14T20:24:06Z","updated_at":"2016-11-12T15:28:23Z","pushed_at":"2017-05-19T18:58:23Z","git_url":"git://github.com/stweil/tesseract.git","ssh_url":"git@github.com:stweil/tesseract.git","clone_url":"https://github.com/stweil/tesseract.git","svn_url":"https://github.com/stweil/tesseract","homepage":"","size":87943,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"tesseract-ocr:master","ref":"master","sha":"da1254dd584231464d23da8f6b990d6a4824b89c","user":{"login":"tesseract-ocr","id":8401422,"avatar_url":"https://avatars1.githubusercontent.com/u/8401422?v=3","gravatar_id":"","url":"https://api.github.com/users/tesseract-ocr","html_url":"https://github.com/tesseract-ocr","followers_url":"https://api.github.com/users/tesseract-ocr/followers","following_url":"https://api.github.com/users/tesseract-ocr/following{/other_user}","gists_url":"https://api.github.com/users/tesseract-ocr/gists{/gist_id}","starred_url":"https://api.github.com/users/tesseract-ocr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tesseract-ocr/subscriptions","organizations_url":"https://api.github.com/users/tesseract-ocr/orgs","repos_url":"https://api.github.com/users/tesseract-ocr/repos","events_url":"https://api.github.com/users/tesseract-ocr/events{/privacy}","received_events_url":"https://api.github.com/users/tesseract-ocr/received_events","type":"Organization","site_admin":false},"repo":{"id":22887094,"name":"tesseract","full_name":"tesseract-ocr/tesseract","owner":{"login":"tesseract-ocr","id":8401422,"avatar_url":"https://avatars1.githubusercontent.com/u/8401422?v=3","gravatar_id":"","url":"https://api.github.com/users/tesseract-ocr","html_url":"https://github.com/tesseract-ocr","followers_url":"https://api.github.com/users/tesseract-ocr/followers","following_url":"https://api.github.com/users/tesseract-ocr/following{/other_user}","gists_url":"https://api.github.com/users/tesseract-ocr/gists{/gist_id}","starred_url":"https://api.github.com/users/tesseract-ocr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tesseract-ocr/subscriptions","organizations_url":"https://api.github.com/users/tesseract-ocr/orgs","repos_url":"https://api.github.com/users/tesseract-ocr/repos","events_url":"https://api.github.com/users/tesseract-ocr/events{/privacy}","received_events_url":"https://api.github.com/users/tesseract-ocr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tesseract-ocr/tesseract","description":"Tesseract Open Source OCR Engine (main repository)","fork":false,"url":"https://api.github.com/repos/tesseract-ocr/tesseract","forks_url":"https://api.github.com/repos/tesseract-ocr/tesseract/forks","keys_url":"https://api.github.com/repos/tesseract-ocr/tesseract/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tesseract-ocr/tesseract/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tesseract-ocr/tesseract/teams","hooks_url":"https://api.github.com/repos/tesseract-ocr/tesseract/hooks","issue_events_url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/events{/number}","events_url":"https://api.github.com/repos/tesseract-ocr/tesseract/events","assignees_url":"https://api.github.com/repos/tesseract-ocr/tesseract/assignees{/user}","branches_url":"https://api.github.com/repos/tesseract-ocr/tesseract/branches{/branch}","tags_url":"https://api.github.com/repos/tesseract-ocr/tesseract/tags","blobs_url":"https://api.github.com/repos/tesseract-ocr/tesseract/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tesseract-ocr/tesseract/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tesseract-ocr/tesseract/git/refs{/sha}","trees_url":"https://api.github.com/repos/tesseract-ocr/tesseract/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tesseract-ocr/tesseract/statuses/{sha}","languages_url":"https://api.github.com/repos/tesseract-ocr/tesseract/languages","stargazers_url":"https://api.github.com/repos/tesseract-ocr/tesseract/stargazers","contributors_url":"https://api.github.com/repos/tesseract-ocr/tesseract/contributors","subscribers_url":"https://api.github.com/repos/tesseract-ocr/tesseract/subscribers","subscription_url":"https://api.github.com/repos/tesseract-ocr/tesseract/subscription","commits_url":"https://api.github.com/repos/tesseract-ocr/tesseract/commits{/sha}","git_commits_url":"https://api.github.com/repos/tesseract-ocr/tesseract/git/commits{/sha}","comments_url":"https://api.github.com/repos/tesseract-ocr/tesseract/comments{/number}","issue_comment_url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/comments{/number}","contents_url":"https://api.github.com/repos/tesseract-ocr/tesseract/contents/{+path}","compare_url":"https://api.github.com/repos/tesseract-ocr/tesseract/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tesseract-ocr/tesseract/merges","archive_url":"https://api.github.com/repos/tesseract-ocr/tesseract/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tesseract-ocr/tesseract/downloads","issues_url":"https://api.github.com/repos/tesseract-ocr/tesseract/issues{/number}","pulls_url":"https://api.github.com/repos/tesseract-ocr/tesseract/pulls{/number}","milestones_url":"https://api.github.com/repos/tesseract-ocr/tesseract/milestones{/number}","notifications_url":"https://api.github.com/repos/tesseract-ocr/tesseract/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tesseract-ocr/tesseract/labels{/name}","releases_url":"https://api.github.com/repos/tesseract-ocr/tesseract/releases{/id}","deployments_url":"https://api.github.com/repos/tesseract-ocr/tesseract/deployments","created_at":"2014-08-12T18:04:59Z","updated_at":"2017-05-19T18:15:51Z","pushed_at":"2017-05-19T19:16:44Z","git_url":"git://github.com/tesseract-ocr/tesseract.git","ssh_url":"git@github.com:tesseract-ocr/tesseract.git","clone_url":"https://github.com/tesseract-ocr/tesseract.git","svn_url":"https://github.com/tesseract-ocr/tesseract","homepage":"","size":37034,"stargazers_count":10488,"watchers_count":10488,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2366,"mirror_url":null,"open_issues_count":145,"forks":2366,"open_issues":145,"watchers":10488,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tesseract-ocr/tesseract/pulls/937"},"html":{"href":"https://github.com/tesseract-ocr/tesseract/pull/937"},"issue":{"href":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/937"},"comments":{"href":"https://api.github.com/repos/tesseract-ocr/tesseract/issues/937/comments"},"review_comments":{"href":"https://api.github.com/repos/tesseract-ocr/tesseract/pulls/937/comments"},"review_comment":{"href":"https://api.github.com/repos/tesseract-ocr/tesseract/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tesseract-ocr/tesseract/pulls/937/commits"},"statuses":{"href":"https://api.github.com/repos/tesseract-ocr/tesseract/statuses/fb863c97a9c8e9c05874af6f6fbd77923cc6f6e9"}},"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"zdenop","id":574156,"avatar_url":"https://avatars0.githubusercontent.com/u/574156?v=3","gravatar_id":"","url":"https://api.github.com/users/zdenop","html_url":"https://github.com/zdenop","followers_url":"https://api.github.com/users/zdenop/followers","following_url":"https://api.github.com/users/zdenop/following{/other_user}","gists_url":"https://api.github.com/users/zdenop/gists{/gist_id}","starred_url":"https://api.github.com/users/zdenop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdenop/subscriptions","organizations_url":"https://api.github.com/users/zdenop/orgs","repos_url":"https://api.github.com/users/zdenop/repos","events_url":"https://api.github.com/users/zdenop/events{/privacy}","received_events_url":"https://api.github.com/users/zdenop/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":1,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"zdenop"}}