{"action":"created","issue":{"url":"https://api.github.com/repos/netvl/immeta/issues/8","repository_url":"https://api.github.com/repos/netvl/immeta","labels_url":"https://api.github.com/repos/netvl/immeta/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/netvl/immeta/issues/8/comments","events_url":"https://api.github.com/repos/netvl/immeta/issues/8/events","html_url":"https://github.com/netvl/immeta/issues/8","id":155414253,"number":8,"title":"Panic in jpeg format loading cnn.com in Servo","user":{"login":"jdm","id":27658,"avatar_url":"https://avatars.githubusercontent.com/u/27658?v=3","gravatar_id":"","url":"https://api.github.com/users/jdm","html_url":"https://github.com/jdm","followers_url":"https://api.github.com/users/jdm/followers","following_url":"https://api.github.com/users/jdm/following{/other_user}","gists_url":"https://api.github.com/users/jdm/gists{/gist_id}","starred_url":"https://api.github.com/users/jdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdm/subscriptions","organizations_url":"https://api.github.com/users/jdm/orgs","repos_url":"https://api.github.com/users/jdm/repos","events_url":"https://api.github.com/users/jdm/events{/privacy}","received_events_url":"https://api.github.com/users/jdm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-18T04:26:31Z","updated_at":"2016-05-19T03:41:20Z","closed_at":null,"body":"```\r\nthread 'ImageCacheThread' panicked at 'arithmetic operation overflowed', /Users/jdm/.cargo/registry/src/github.com-1ecc6299db9ec823/immeta-0.3.2/src/formats/jpeg.rs:37\r\nstack backtrace:\r\n   1:        0x10ac3df18 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f\r\n   2:        0x10ac443a5 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac\r\n   3:        0x10ac43fbe - std::panicking::default_hook::hc2c969e7453d080c\r\n   4:        0x10a119e19 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h241fdc1bd2e9f090\r\n   5:        0x10a119cb3 - _<std..thread..LocalKey<T>>::with::h7b8c266a788a1380\r\n   6:        0x10a119b0a - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h49531732a5b6b1e1\r\n   7:        0x10ac2bb52 - std::panicking::rust_panic_with_hook::hfe203e3083c2b544\r\n   8:        0x10ac44966 - std::panicking::begin_panic::h4889569716505182\r\n   9:        0x10ac2d448 - std::panicking::begin_panic_fmt::h484cd47786497f03\r\n  10:        0x10ac445bf - rust_begin_unwind\r\n  11:        0x10ac6bdb0 - core::panicking::panic_fmt::h257ceb0aa351d801\r\n  12:        0x10ac6c0ac - core::panicking::panic::h4bb1497076d04ab9\r\n  13:        0x10869cb02 - _<formats..jpeg..Metadata as traits..LoadableMetadata>::load::h1e940b8d58d4471e\r\n  14:        0x10867a000 - immeta::generic::load::hecc3105c1cd6a3b3\r\n  15:        0x10867978b - immeta::generic::load_from_buf::h99f4a09595977935\r\n  16:        0x10855a5e3 - net::image_cache_thread::ImageCache::handle_progress::hb85efed105d4ae3a\r\n  17:        0x108540fe0 - net::image_cache_thread::ImageCache::run::h8a7f9c4cea47c0ce\r\n  18:        0x1085942c4 - net::image_cache_thread::new_image_cache_thread::_$u7b$$u7b$closure$u7d$$u7d$::hd955388743fd3934\r\n  19:        0x1085941c3 - _<std..panic..AssertUnwindSafe<F> as std..ops..FnOnce<()>>::call_once::he46335d08fc20bad\r\n  20:        0x10859410b - std::panicking::try::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h47315e3d894b7f3e\r\n  21:        0x108594834 - std::panicking::try::call::h79a9ea3aa322847c\r\n  22:        0x10ac47b2b - __rust_try\r\n  23:        0x10ac47ac5 - __rust_maybe_catch_panic\r\n  24:        0x10859405d - std::panicking::try::_$u7b$$u7b$closure$u7d$$u7d$::hdd5242960360b596\r\n  25:        0x108593f9f - _<std..thread..LocalKey<T>>::with::h1ed8404e3e27cf1e\r\n  26:        0x108593ded - std::panicking::try::h4b8e2e54c75fdc17\r\n  27:        0x108593cca - std::panic::catch_unwind::h7a980a0a21f064ec\r\n  28:        0x108593b26 - std::thread::Builder::spawn::_$u7b$$u7b$closure$u7d$$u7d$::h87e5067523346194\r\n  29:        0x108594a2c - _<F as std..boxed..FnBox<A>>::call_box::ha6e60ff952ac3d25\r\n  30:        0x10ac433c8 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b\r\n  31:     0x7fff8f94a898 - _pthread_body\r\n  32:     0x7fff8f94a729 - _pthread_start\r\n```\r\nThis is https://github.com/netvl/immeta/blob/f06b1fd1fc13184cf2834e009853117b7c557a74/src/formats/jpeg.rs#L37 . Presumably we end up with 1 or 0."},"comment":{"url":"https://api.github.com/repos/netvl/immeta/issues/comments/220220357","html_url":"https://github.com/netvl/immeta/issues/8#issuecomment-220220357","issue_url":"https://api.github.com/repos/netvl/immeta/issues/8","id":220220357,"user":{"login":"jdm","id":27658,"avatar_url":"https://avatars.githubusercontent.com/u/27658?v=3","gravatar_id":"","url":"https://api.github.com/users/jdm","html_url":"https://github.com/jdm","followers_url":"https://api.github.com/users/jdm/followers","following_url":"https://api.github.com/users/jdm/following{/other_user}","gists_url":"https://api.github.com/users/jdm/gists{/gist_id}","starred_url":"https://api.github.com/users/jdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdm/subscriptions","organizations_url":"https://api.github.com/users/jdm/orgs","repos_url":"https://api.github.com/users/jdm/repos","events_url":"https://api.github.com/users/jdm/events{/privacy}","received_events_url":"https://api.github.com/users/jdm/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T03:41:20Z","updated_at":"2016-05-19T03:41:20Z","body":"The image appears to be `data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==` interestingly enough."}}