{"action":"opened","issue":{"url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/559","repository_url":"https://api.github.com/repos/SixLabors/ImageSharp","labels_url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/559/labels{/name}","comments_url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/559/comments","events_url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/559/events","html_url":"https://github.com/SixLabors/ImageSharp/issues/559","id":320691391,"number":559,"title":"System.OverflowException: Array dimensions exceeded supported range","user":{"login":"alex-birch","id":4734530,"avatar_url":"https://avatars2.githubusercontent.com/u/4734530?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-birch","html_url":"https://github.com/alex-birch","followers_url":"https://api.github.com/users/alex-birch/followers","following_url":"https://api.github.com/users/alex-birch/following{/other_user}","gists_url":"https://api.github.com/users/alex-birch/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-birch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-birch/subscriptions","organizations_url":"https://api.github.com/users/alex-birch/orgs","repos_url":"https://api.github.com/users/alex-birch/repos","events_url":"https://api.github.com/users/alex-birch/events{/privacy}","received_events_url":"https://api.github.com/users/alex-birch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-07T06:44:39Z","updated_at":"2018-05-07T06:44:39Z","closed_at":null,"author_association":"NONE","body":"### Prerequisites\r\n\r\n- [x] I have written a descriptive issue title\r\n- [x] I have verified that I am running the latest version of ImageSharp\r\n- [ ] I have verified if the problem exist in both `DEBUG` and `RELEASE` mode\r\n- [x] I have searched [open](https://github.com/SixLabors/ImageSharp/issues) and [closed](https://github.com/SixLabors/ImageSharp/issues?q=is%3Aissue+is%3Aclosed) issues to ensure it has not already been reported\r\nClosest I could find was [this](https://github.com/SixLabors/ImageSharp/issues/217)\r\n\r\n### Description\r\n<!-- A description of the bug or feature -->\r\nLoading and saving this image causes the following stack trace:\r\n\r\n`Unhandled Exception: System.OverflowException: Array dimensions exceeded supported range.\r\n   at SixLabors.ImageSharp.MetaData.Profiles.Icc.IccReader.ReadTagTable(IccDataReader reader)\r\n   at SixLabors.ImageSharp.MetaData.Profiles.Icc.IccReader.ReadTagData(IccDataReader reader)\r\n   at SixLabors.ImageSharp.MetaData.Profiles.Icc.IccProfile.InitializeEntries()\r\n   at SixLabors.ImageSharp.MetaData.Profiles.Icc.IccWriter.Write(IccProfile profile)\r\n   at SixLabors.ImageSharp.Formats.Jpeg.GolangPort.JpegEncoderCore.WriteIccProfile(IccProfile iccProfile)\r\n   at SixLabors.ImageSharp.Formats.Jpeg.GolangPort.JpegEncoderCore.Encode[TPixel](Image`1 image, Stream stream)\r\n   at WebApplicationBasic.Program.Main(String[] args) in Program.cs:line 18`\r\n\r\n\r\n### Steps to Reproduce\r\n<!-- List of steps, sample code, failing test or link to a project that reproduces the behavior -->\r\n![coco_val2014_000000395978](https://user-images.githubusercontent.com/4734530/39688369-bbadfefa-5215-11e8-8c08-e6fa7f16afa5.jpg)\r\n\r\nI loaded the image and exported to JPG like so:\r\n`            var img = SixLabors.ImageSharp.Image.Load<Rgba32>(args[0]);\r\n            img.ToByteArray(new JpegEncoder());`\r\n\r\n### System Configuration\r\n<!-- Tell us about the environment where you are experiencing the bug -->\r\n\r\n\r\n- ImageSharp version:\r\nSixLabors.ImageSharp 1.0.0-beta0003\r\n- Other ImageSharp packages and versions:\r\n- Environment (Operating system, version and so on):\r\nMacOS High Sierra\r\n- .NET Framework version:\r\nDotnet 2.1.3\r\n- Additional information:\r\n\r\n<!-- Thanks for reporting the issue to ImageSharp! -->\r\n"}}
{"actor":{"display_login":"alex-birch"}}