ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | LICENSE

Commit: 93e3a08c5eafbb9053b56eb75ccb370b9c23cb1d
Parent: 8859b7d2eb29a182dfc4aa4f67e3b4f8296e165b
Author: Randy Palamar
Date:   Mon,  9 Sep 2024 21:43:08 -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 this thread for details:

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

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

diff --git a/util.c b/util.c @@ -30,7 +30,6 @@ mem_move(char *src, char *dest, size n) } #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) {