microsoft / microsoft/lepton_jpeg_rust

Support for legacy files

Open
#95 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
182
Forks
17
Avg merge
19h 46m
Merged PRs (30d)
1

Description

I found out that library does not support legacy Lepton files:

thread 'main' panicked at src\structs\lepton_header.rs:206:29:
attempt to subtract with overflow

It looks like it is possible to get in single-threaded mode.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/structs/lepton_header.rs at the reported line 206 and reproduce the overflow while processing a legacy Lepton file. Trace the header parsing and single-threaded mode behavior; done means legacy Lepton files no longer panic and are supported successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.