<html><head></head><body>Same as 1 and much worse in this sensitive code path.<br><br>-1<br><br><div class="gmail_quote">Le 8 décembre 2020 16:19:09 GMT+02:00, "Hugo Beauzée-Luyssen" <hugo@beauzee.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail"><hr> src/misc/messages.c | 6 +++++-<br> 1 file changed, 5 insertions(+), 1 deletion(-)<br><br>diff --git a/src/misc/messages.c b/src/misc/messages.c<br>index 898e4be56f..7e5bcc00e3 100644<br>--- a/src/misc/messages.c<br>+++ b/src/misc/messages.c<br>@@ -95,9 +95,12 @@ void vlc_vaLog(struct vlc_logger *const *loggerp, int type,<br> p = strchr(module, '.');<br> <br> size_t modlen = (p != NULL) ? (p - module) : 0;<br>- char modulebuf[modlen + 1];<br>+ char *modulebuf = NULL;<br> if (p != NULL)<br> {<br>+ modulebuf = malloc(modlen + 1);<br>+ if (!modulebuf)<br>+ return;<br> memcpy(modulebuf, module, modlen);<br> modulebuf[modlen] = '\0';<br> module = modulebuf;<br>@@ -126,6 +129,7 @@ void vlc_vaLog(struct vlc_logger *const *loggerp, int type,<br> /* Pass message to the callback */<br> if (logger != NULL)<br> vlc_vaLogCallback(logger, type, &msg, format, args);<br>+ free(modulebuf);<br> }<br> <br> void vlc_Log(struct vlc_logger *const *logger, int type,</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>