[vlc-commits] http output: fix off-by-one

Rafaël Carré git at videolan.org
Tue Feb 25 15:11:33 CET 2014


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Feb 25 15:10:45 2014 +0100| [8db7e1865bdd3e6196e57bd21f0af5c6076bfab8] | committer: Rafaël Carré

http output: fix off-by-one

(Coverity report 1187490)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8db7e1865bdd3e6196e57bd21f0af5c6076bfab8
---

 modules/access_output/http.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access_output/http.c b/modules/access_output/http.c
index 4fbcf22..65ce262 100644
--- a/modules/access_output/http.c
+++ b/modules/access_output/http.c
@@ -113,7 +113,7 @@ struct sout_access_out_sys_t
 
 /* Definitions for the Metacube2 protocol, used to communicate with Cubemap. */
 
-#define METACUBE2_SYNC "cube!map"  /* 8 bytes long. */
+static const uint8_t METACUBE2_SYNC[8] = {'c', 'u', 'b', 'e', '!', 'm', 'a', 'p'};
 #define METACUBE_FLAGS_HEADER 0x1
 #define METACUBE_FLAGS_NOT_SUITABLE_FOR_STREAM_START 0x2
 



More information about the vlc-commits mailing list