{"action":"created","issue":{"url":"https://api.github.com/repos/gianlucabertani/Objective-Zip/issues/47","repository_url":"https://api.github.com/repos/gianlucabertani/Objective-Zip","labels_url":"https://api.github.com/repos/gianlucabertani/Objective-Zip/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/gianlucabertani/Objective-Zip/issues/47/comments","events_url":"https://api.github.com/repos/gianlucabertani/Objective-Zip/issues/47/events","html_url":"https://github.com/gianlucabertani/Objective-Zip/issues/47","id":172162775,"number":47,"title":"OZZip Stream access in Swift 3 Fails","user":{"login":"andyj-at-aspin","id":21127962,"avatar_url":"https://avatars.githubusercontent.com/u/21127962?v=3","gravatar_id":"","url":"https://api.github.com/users/andyj-at-aspin","html_url":"https://github.com/andyj-at-aspin","followers_url":"https://api.github.com/users/andyj-at-aspin/followers","following_url":"https://api.github.com/users/andyj-at-aspin/following{/other_user}","gists_url":"https://api.github.com/users/andyj-at-aspin/gists{/gist_id}","starred_url":"https://api.github.com/users/andyj-at-aspin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyj-at-aspin/subscriptions","organizations_url":"https://api.github.com/users/andyj-at-aspin/orgs","repos_url":"https://api.github.com/users/andyj-at-aspin/repos","events_url":"https://api.github.com/users/andyj-at-aspin/events{/privacy}","received_events_url":"https://api.github.com/users/andyj-at-aspin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-19T15:52:44Z","updated_at":"2016-08-26T16:14:18Z","closed_at":null,"body":"The most recent change to the Swift 3 language (as delivered in XCode 8 beta 6) has made some further changes to the way ObjectiveC interacts with Swift.\r\n\r\nOnce the code in Objective-Zip_Swift_Tests.swift has been brought up to \"current\" Swift syntax, the tests segfault with EXC_BAD_ACCESS (code=-1, address=0x3) on line 143 when the NSData buffer is populated using OZZipReadStream.readData():\r\n\r\n            NSLog(\"Test 1: reading from first file's stream...\")\r\n            \r\n            let data1 = NSMutableData(length:256)!\r\n            let bytesRead1 = try read1.readData(withBuffer: data1) <<< FAIL HERE!\r\n\r\nThis code passed without any issue using XCode 7.3 and Swift 2.x. I really can't help but think there is some link here between the expected return value of 3 (bytes read) and the reported address of 0x3 in the EXC_BAD_ACCESS."},"comment":{"url":"https://api.github.com/repos/gianlucabertani/Objective-Zip/issues/comments/242779842","html_url":"https://github.com/gianlucabertani/Objective-Zip/issues/47#issuecomment-242779842","issue_url":"https://api.github.com/repos/gianlucabertani/Objective-Zip/issues/47","id":242779842,"user":{"login":"gianlucabertani","id":5794311,"avatar_url":"https://avatars.githubusercontent.com/u/5794311?v=3","gravatar_id":"","url":"https://api.github.com/users/gianlucabertani","html_url":"https://github.com/gianlucabertani","followers_url":"https://api.github.com/users/gianlucabertani/followers","following_url":"https://api.github.com/users/gianlucabertani/following{/other_user}","gists_url":"https://api.github.com/users/gianlucabertani/gists{/gist_id}","starred_url":"https://api.github.com/users/gianlucabertani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gianlucabertani/subscriptions","organizations_url":"https://api.github.com/users/gianlucabertani/orgs","repos_url":"https://api.github.com/users/gianlucabertani/repos","events_url":"https://api.github.com/users/gianlucabertani/events{/privacy}","received_events_url":"https://api.github.com/users/gianlucabertani/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T16:14:18Z","updated_at":"2016-08-26T16:14:18Z","body":"Thank you, I really didn't have the time to put my head into this problem. I'll check and pull your request as soon as possible."}}
{"actor":{"display_login":"gianlucabertani"}}