diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-10-13 15:52:34 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-10-13 15:52:34 +0000 |
| commit | 43a48f53d42a5de21e0a6eb6783863051ad8862a (patch) | |
| tree | 5c5c47025693955c08c5cc4c7b053b75efe94442 /debug.c | |
| parent | Merge branch 'delayed-reflow' (diff) | |
sixel: don’t crash when sixel image exceeds current sixel max height
When we try to resize a sixel past the current max height, we set
col > image-width to signal this.
This means ‘width’ could be smaller than ‘col’. When calculating how
many sixels to emit in sixel_add_many(), we didnt’ account for this.
The resulting value was -1, converted to ‘unsigned’. I.e. a very large
value. This resulted in an assert triggering in sixel_add() in debug
builds, and a crash in release builds.
Diffstat (limited to 'debug.c')
0 files changed, 0 insertions, 0 deletions
