Skip to content

Commit

Permalink
fix(gif): gif.h array overrun (#3789)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgritz authored Mar 12, 2023
1 parent 14995e3 commit 4ce7365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gif.imageio/gif.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ struct GifPalette
// k-d tree over RGB space, organized in heap fashion
// i.e. left child of node i is node i*2, right child is node i*2+1
// nodes 256-511 are implicitly the leaves, containing a color
uint8_t treeSplitElt[255];
uint8_t treeSplit[255];
uint8_t treeSplitElt[256];
uint8_t treeSplit[256];
};

// max, min, and abs functions
Expand Down

0 comments on commit 4ce7365

Please sign in to comment.