{"action":"opened","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13204","repository_url":"https://api.github.com/repos/lionheart/openradar-mirror","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13204/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13204/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13204/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/13204","id":148885263,"number":13204,"title":"15195959: CGDataProviderCopyData modifies original image","user":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/classification:other%20bug","name":"classification:other bug","color":"e11d21"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/reproducible:always","name":"reproducible:always","color":"5319e7"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/status:open","name":"status:open","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/4","html_url":"https://github.com/lionheart/openradar-mirror/milestones/iOS%20SDK","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/4/labels","id":1237418,"number":4,"title":"iOS SDK","description":null,"creator":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":2215,"closed_issues":3,"state":"open","created_at":"2015-08-03T02:08:31Z","updated_at":"2016-04-16T20:01:40Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-04-16T20:01:40Z","updated_at":"2016-04-16T20:01:40Z","closed_at":null,"body":"#### Description\n\nSummary:\r\nCalling CGDataProviderCopyData(CGImageGetDataProvider(image.CGImage)) modifies the original image, the R and B channels seem to be switched.\r\n\r\nSteps to Reproduce:\r\n1) Load an image with -[UIImage imageNamed:]\r\n2) Assign the image to an image view\r\n3) use CGDataProviderCopyData(CGImageGetDataProvider(image.CGImage)) to copy the image data\r\n\r\n---\r\n    UIImage *image = [UIImage imageNamed:@\"testImage\"];\r\n    self.imageView.image = image;\r\n    CFDataRef dataSource = CGDataProviderCopyData(CGImageGetDataProvider(image.CGImage));\r\n    CFRelease(dataSource);\r\n---\r\n\r\nExpected Results:\r\nThe original image doesn't change, dataSource contains image data.\r\nThe image view displays the original image correctly.\r\n\r\n\r\nActual Results:\r\nThe image view displays the original image as if R and B channels are switched.\r\n\r\nVersion:\r\n7.0.2 (11A501)\r\n\r\nNotes:\r\nSample project: https://github.com/toco/radars/tree/master/CGDataProviderCopyData-Bug\r\n\r\nConfiguration:\n\n-\nProduct Version: 7.0.2 (11A501)\nCreated: 2013-10-10T10:22:55.339220\nOriginated: 2013-10-10T00:00:00\nOpen Radar Link: http://www.openradar.me/15195959"}}