[FFmpeg-cvslog] avformat/rtmpproto: reserve enough space for statusmsg

Timo Rothenpieler git at videolan.org
Fri Dec 27 21:25:59 EET 2024


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Thu Dec 12 20:53:51 2024 +0100| [e3836d1d05289993381f8beb8b3ef285a4be143a] | committer: Timo Rothenpieler

avformat/rtmpproto: reserve enough space for statusmsg

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e3836d1d05289993381f8beb8b3ef285a4be143a
---

 libavformat/rtmpproto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index bb974390d3..a34020b092 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -2004,7 +2004,7 @@ static int send_invoke_response(URLContext *s, RTMPPacket *pkt)
         pp = spkt.data;
         ff_amf_write_string(&pp, "onFCPublish");
     } else if (!strcmp(command, "publish")) {
-        char statusmsg[128];
+        char statusmsg[sizeof(filename) + 32];
         snprintf(statusmsg, sizeof(statusmsg), "%s is now published", filename);
         ret = write_begin(s);
         if (ret < 0)



More information about the ffmpeg-cvslog mailing list