{"action":"created","issue":{"url":"https://api.github.com/repos/Stephane-D/SGDK/issues/38","labels_url":"https://api.github.com/repos/Stephane-D/SGDK/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/Stephane-D/SGDK/issues/38/comments","events_url":"https://api.github.com/repos/Stephane-D/SGDK/issues/38/events","html_url":"https://github.com/Stephane-D/SGDK/issues/38","id":117599500,"number":38,"title":"wavtoraw crashes","user":{"login":"clbr","id":790333,"avatar_url":"https://avatars.githubusercontent.com/u/790333?v=3","gravatar_id":"","url":"https://api.github.com/users/clbr","html_url":"https://github.com/clbr","followers_url":"https://api.github.com/users/clbr/followers","following_url":"https://api.github.com/users/clbr/following{/other_user}","gists_url":"https://api.github.com/users/clbr/gists{/gist_id}","starred_url":"https://api.github.com/users/clbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clbr/subscriptions","organizations_url":"https://api.github.com/users/clbr/orgs","repos_url":"https://api.github.com/users/clbr/repos","events_url":"https://api.github.com/users/clbr/events{/privacy}","received_events_url":"https://api.github.com/users/clbr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-18T14:36:02Z","updated_at":"2015-11-18T14:51:59Z","closed_at":null,"body":"The attached file crashes wavtoraw. It's straight exported from Audacity at 16Khz and 8-bit unsigned.\r\n\r\nValgrind log:\r\n```\r\n==4496== Command: /tmp/wavtoraw /tmp/bug.wav bug.tmp 16000\r\n==4496==\r\n==4496== Conditional jump or move depends on uninitialised value(s)\r\n==4496==    at 0x400B1B: main (wavtoraw.c:68)\r\n==4496==\r\n==4496== Conditional jump or move depends on uninitialised value(s)\r\n==4496==    at 0x400C36: main (wavtoraw.c:93)\r\n==4496==\r\n==4496== Conditional jump or move depends on uninitialised value(s)\r\n==4496==    at 0x400C82: main (wavtoraw.c:99)\r\n==4496==\r\n==4496== Conditional jump or move depends on uninitialised value(s)\r\n==4496==    at 0x400CB0: main (wavtoraw.c:105)\r\n==4496==\r\n==4496== Conditional jump or move depends on uninitialised value(s)\r\n==4496==    at 0x400D70: main (wavtoraw.c:99)\r\n==4496==\r\n==4496== Use of uninitialised value of size 8\r\n==4496==    at 0x400DAD: main (wavtoraw.c:129)\r\n==4496==\r\n```\r\n\r\nThe line numbers are offset by 2, because I had to add a #define _GNU_SOURCE on top, to fix a warning about round().\r\n\r\nThe file is named PDF because github didn't allow uploading wavs, just rename to wav.\r\n\r\n[bug.pdf](https://github.com/Stephane-D/SGDK/files/37938/bug.pdf)"},"comment":{"url":"https://api.github.com/repos/Stephane-D/SGDK/issues/comments/157738170","html_url":"https://github.com/Stephane-D/SGDK/issues/38#issuecomment-157738170","issue_url":"https://api.github.com/repos/Stephane-D/SGDK/issues/38","id":157738170,"user":{"login":"Stephane-D","id":619064,"avatar_url":"https://avatars.githubusercontent.com/u/619064?v=3","gravatar_id":"","url":"https://api.github.com/users/Stephane-D","html_url":"https://github.com/Stephane-D","followers_url":"https://api.github.com/users/Stephane-D/followers","following_url":"https://api.github.com/users/Stephane-D/following{/other_user}","gists_url":"https://api.github.com/users/Stephane-D/gists{/gist_id}","starred_url":"https://api.github.com/users/Stephane-D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stephane-D/subscriptions","organizations_url":"https://api.github.com/users/Stephane-D/orgs","repos_url":"https://api.github.com/users/Stephane-D/repos","events_url":"https://api.github.com/users/Stephane-D/events{/privacy}","received_events_url":"https://api.github.com/users/Stephane-D/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T14:51:59Z","updated_at":"2015-11-18T14:51:59Z","body":"I can't see the link with the given line (even with the offset of 2). I though char, short and long types are always fixed to 8/16/32 bits whatever is the CPU behind."}}