Skip to content

fix(softimage): Various fixes for malformed channel packets#5156

Open
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-pic-channelpackets
Open

fix(softimage): Various fixes for malformed channel packets#5156
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-pic-channelpackets

Conversation

@lgritz
Copy link
Copy Markdown
Collaborator

@lgritz lgritz commented Apr 22, 2026

  • Fix bugs when channel order isn't strictly R,G,B,A by using a m_channel_map.
  • Detect malformed file with too many channel packets.
  • Gracefully handle duplicate channel bits across packets by not thinking that there are duplicate channels.
  • Guard against channel packets that contain no channels.

Assisted-by: Claude Code / Opus 4.6
(mostly for analysis/identification of the potential problems; touching the code only for the out-of-order channels fix)

* Fix bugs when channel order isn't strictly R,G,B,A by using a
  `m_channel_map`.
* Detect malformed file with too many channel packets.
* Gracefully handle duplicate channel bits across packets by not
  thinking that there are duplicate channels.
* Guard against channel packets that contain no channels.

Assisted-by: Claude Code / Opus 4.6
(mostly for analysis/identification of the potential problems;
touching the code only for the out-of-order channels fix)

Signed-off-by: Larry Gritz <lg@larrygritz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant