From 46198fde64b2e911af913874b5b1fab811220956 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Fri, 10 Apr 2015 15:51:32 +0200 Subject: Fix 128 char DLS null byte out-of-bounds write --- src/mot-encoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp index e0be054..2cd497f 100644 --- a/src/mot-encoder.cpp +++ b/src/mot-encoder.cpp @@ -872,7 +872,7 @@ void packMscDG(unsigned char* b, MSCDG* msc, unsigned short int* bsize) void writeDLS(int output_fd, const char* dls_file, int padlen, uint8_t charset) { - char dlstext[MAXDLS]; + char dlstext[MAXDLS + 1]; int dlslen; int i; -- cgit v1.2.3