Skip to content

[CTX-0247] Kitty gfx: payload decode (PNG/RGB, bounded, fuzz-tested) #424

Closed

Description

@Xuepoo

Decode assembled Kitty payloads into RGBA bitmaps, bounded and safe.

Priority: P1 | Area: rich | Labels: feat,area:rich,P1 | Milestone: v0.1.0 | Task: CTX-0247

Scope

crates/bitty-rich/src/kitty_decode.rs (new) + lib.rs wiring + png = 0.18 edge. Intake (kitty.rs), present/render (CTX-0248), and parser/APC wiring untouched.

Acceptance

  • f=100 PNG, f=24 RGB, f=32 RGBA decode to RGBA8 + (w,h); others fail closed
  • Bounds before allocation (8192/side, 4096^2 px area, 64 MiB RGBA)
  • Malformed input fails closed, no panic; truncation + garbage fuzz-shape tests
  • Deterministic (same bytes -> same bitmap)
  • Decoder-crate justification documented (minimal png over image; zero new supply-chain surface)

Implements CTX-0247 under epic CTX-0246.

Activity

  1. added this to the v0.1.0 milestone on Sep 8, 2026
  2. added
    feat
    P1
    area:rich
    on Sep 8, 2026
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

    P1area:richfeat

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions