From 145e2b8f4afcca7ff972ae81caea3f7d73fdcd2a Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sat, 25 Jun 2016 08:48:29 +1000 Subject: [PATCH] src/alac.c: Fix VLA size in alac_close() The type of `kuki_data` was `uint8_t *` instead of `uint8_t`. For some reason the C type checker was not able to pick this up. Closes: https://github.com/erikd/libsndfile/issues/135 --- src/alac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alac.c b/src/alac.c index f4d9bc68..3ff74aa7 100644 --- a/src/alac.c +++ b/src/alac.c @@ -170,7 +170,7 @@ alac_close (SF_PRIVATE *psf) { ALAC_ENCODER *penc = &plac->encoder ; SF_CHUNK_INFO chunk_info ; sf_count_t readcount ; - uint8_t *kuki_data [plac->kuki_size] ; + uint8_t kuki_data [plac->kuki_size] ; uint32_t pakt_size = 0, saved_partial_block_frames ; plac->final_write_block = 1 ;