lite-xl/src
Chloé Vulquin 4ae92ae128
Memory fixes (#1705)
* fix: free-before-init in renwin_init_surface when using sdl renderer

`ren->rensurface.surface` presupposes zero-initialized rensurface.
Rensurface was not actually zero-initialized.
It is now.

* fix: heap buffer overflow in process_env_free

`process_env_free` presupposed that it was null-terminated.
Pass length to free instead.

* use calloc instead of memset for zero-init

Co-authored-by: Guldoman <giulio.lettieri@gmail.com>

---------

Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2024-01-21 14:42:46 +08:00
..
api Memory fixes (#1705) 2024-01-21 14:42:46 +08:00
bundle_open.m Takes kivutar's changes into account, cleaning things up slightly. 2021-12-15 20:31:24 -05:00
main.c Remove DPI detection for default `SCALE` 2023-10-16 12:04:37 +08:00
meson.build Add manifest on Windows (#1405) 2023-08-19 12:38:34 +08:00
rencache.c Use x offset to define render command rect in `rencache_draw_text` (#1618) 2023-11-30 11:45:25 +08:00
rencache.h Attach command buffer to Renderer Window (#1472) 2023-08-19 13:29:05 +08:00
renderer.c Use x offset to define render command rect in `rencache_draw_text` (#1618) 2023-11-30 11:45:25 +08:00
renderer.h Use x offset to define render command rect in `rencache_draw_text` (#1618) 2023-11-30 11:45:25 +08:00
renwindow.c Scale mouse coordinates by window scale (#1630) 2023-11-30 11:27:08 +08:00
renwindow.h Scale mouse coordinates by window scale (#1630) 2023-11-30 11:27:08 +08:00
unidata.h Update unidata to version 15.0 (#1122) 2022-09-19 21:27:54 -04:00
utfconv.h fix utfconv.h duplicate functions 2022-11-14 21:59:32 +08:00