[vlc-devel] [PATCH 03/12] input: stream: Avoid VLA
Rémi Denis-Courmont
remi at remlab.net
Tue Dec 8 16:08:45 CET 2020
Ok
Le 8 décembre 2020 16:19:07 GMT+02:00, "Hugo Beauzée-Luyssen" <hugo at beauzee.fr> a écrit :
>---
> src/input/stream.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/src/input/stream.c b/src/input/stream.c
>index 77c8cf0e4c..b07c3b451d 100644
>--- a/src/input/stream.c
>+++ b/src/input/stream.c
>@@ -434,8 +434,8 @@ static ssize_t vlc_stream_ReadRaw(stream_t *s, void
>*buf, size_t len)
> if (unlikely(len == 0))
> return 0;
>
>- char dummy[(len <= 256 ? len : 256)];
>- ret = s->pf_read(s, dummy, sizeof (dummy));
>+ char dummy[256];
>+ ret = s->pf_read(s, dummy, len <= 256 ? len : 256);
> }
> else
> ret = s->pf_read(s, buf, len);
>--
>2.29.2
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel
--
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20201208/364fcf79/attachment.html>
More information about the vlc-devel
mailing list