lite-xl/src/api
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
..
dirmonitor Updated dummy method signature to match prototypes. 2023-08-19 12:28:48 +08:00
api.c c core: fix extra utf8 build conflict on windows 2022-05-11 00:22:01 -04:00
api.h Fix native plugins not reloading upon core:restart (#1219) 2022-12-02 17:06:35 -05:00
dirmonitor.c fix(dirmonitor): deadlock if error handler jumps somewhere else (#1647) 2023-10-24 20:16:52 +08:00
process.c Memory fixes (#1705) 2024-01-21 14:42:46 +08:00
regex.c Make empty groups in `regex.gmatch` return their offset (#1325) 2023-08-19 12:28:47 +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
system.c Scale mouse coordinates by window scale (#1630) 2023-11-30 11:27:08 +08:00
utf8.c Don't set a value twice (#1306) 2023-08-19 12:28:19 +08:00