Skip to content

Panic while decoding favicon #463

Closed
Closed

Description

@paulrouget
$ cargo run --example opening ./favicon.ico
thread '<main>' panicked at 'arithmetic operation overflowed', src/ico/decoder.rs:81

Using this file: https://news.ycombinator.com/favicon.ico

Activity

  1. paulrouget commented on Oct 20, 2015

    @paulrouget
    ContributorAuthor

    Casting real_width/height to u32 appears to fix this issue. But I'm not sure this is the right approach.

  2. waddlesplash commented on Oct 20, 2015

    @waddlesplash

    #464 was merged, this is now fixed.

  3. bvssvni commented on Oct 20, 2015

    @bvssvni
    Contributor

    Thanks @waddlesplash !

  4. added a commit that references this issue on Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions