mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-12 04:27:51 -05:00
commit
1b4b64dca7
2 changed files with 7 additions and 2 deletions
|
|
@ -34,6 +34,9 @@
|
||||||
|
|
||||||
* Reverted _"Consumed modifiers are no longer sent to the client
|
* Reverted _"Consumed modifiers are no longer sent to the client
|
||||||
application"_ (https://codeberg.org/dnkl/foot/issues/425).
|
application"_ (https://codeberg.org/dnkl/foot/issues/425).
|
||||||
|
* Crash caused by a double free originating in `XTSMGRAPHICS` - set
|
||||||
|
number of color registers
|
||||||
|
(https://codeberg.org/dnkl/foot/issues/427).
|
||||||
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
|
||||||
6
sixel.c
6
sixel.c
|
|
@ -1344,8 +1344,10 @@ sixel_colors_set(struct terminal *term, unsigned count)
|
||||||
unsigned new_palette_size = min(max(2, count), SIXEL_MAX_COLORS);
|
unsigned new_palette_size = min(max(2, count), SIXEL_MAX_COLORS);
|
||||||
LOG_DBG("sixel palette size set to %u", new_palette_size);
|
LOG_DBG("sixel palette size set to %u", new_palette_size);
|
||||||
|
|
||||||
free(term->sixel.palette);
|
free(term->sixel.private_palette);
|
||||||
term->sixel.palette = NULL;
|
free(term->sixel.shared_palette);
|
||||||
|
term->sixel.private_palette = NULL;
|
||||||
|
term->sixel.shared_palette = NULL;
|
||||||
|
|
||||||
term->sixel.palette_size = new_palette_size;
|
term->sixel.palette_size = new_palette_size;
|
||||||
sixel_colors_report_current(term);
|
sixel_colors_report_current(term);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue