vtgl

terminal emulator implemented in OpenGL
git clone anongit@rnpnr.xyz:vtgl.git
Log | Files | Refs | Feed | LICENSE

Commit: d15eeddbee3ecbe59357ec371cc17a8ae6e3c7f1
Parent: 8aecf19dd4ee1633e7235b214a63246061089c69
Author: Randy Palamar
Date:   Thu, 19 Sep 2024 05:33:36 -0600

drop alloc_size and malloc attributes

They are full bugs even in the compiler's expected case and
completely ignored in the single translation unit case when the
function is inlined. No bounds checking for you (this doesn't
really catch bugs for me anyways).

See here for details:

https://lists.sr.ht/~skeeto/public-inbox/%3Cane2ee7fpnyn3qxslygprmjw2yrvzppxuim25jvf7e6f5jgxbd@p7y6own2j3it%3E#%3Csl24i5iz2kbxqmsbwv6gwplh2jh32k7qcqh6fhmwu25yjqst@oxldmout4ptz%3E

Diffstat:
Mutil.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/util.c b/util.c @@ -54,7 +54,6 @@ mem_clear(void *p_, u8 c, size len) } #define alloc(a, t, n) (t *)alloc_(a, sizeof(t), _Alignof(t), n) -__attribute((malloc, alloc_size(4, 2), alloc_align(3))) static void * alloc_(Arena *a, size len, size align, size count) {