lite-xl/src
Chloé Vulquin 3897e59e6b 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-02-11 15:38:51 +00:00
..
api Memory fixes (#1705) 2024-02-11 15:38:51 +00:00
bundle_open.m Takes kivutar's changes into account, cleaning things up slightly. 2021-12-15 20:31:24 -05:00
dirmonitor.o innosetup changes 2023-01-08 20:52:15 +00:00
main.c turn window_renderer into managed pointer (#1683) 2023-12-26 13:16:33 +00:00
meson.build Add manifest on Windows (#1405) 2023-08-07 14:50:58 +01:00
rencache.c Use x offset to define render command rect in `rencache_draw_text` (#1618) 2023-12-26 13:16:33 +00:00
rencache.h Attach command buffer to Renderer Window (#1472) 2023-08-07 14:50:59 +01:00
renderer.c Memory fixes (#1705) 2024-02-11 15:38:51 +00:00
renderer.h turn window_renderer into managed pointer (#1683) 2023-12-26 13:16:33 +00:00
renwindow.c Scale mouse coordinates by window scale (#1630) 2023-12-26 13:16:33 +00:00
renwindow.h Scale mouse coordinates by window scale (#1630) 2023-12-26 13:16:33 +00: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