aboutsummaryrefslogtreecommitdiffstats
path: root/src/mot-encoder.cpp
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2015-04-10 15:51:32 +0200
committerStefan Pöschel <github@basicmaster.de>2015-04-10 15:51:32 +0200
commit4ed8967e8b4b9fd108532f175295d953eb54b87b (patch)
tree76d80ebb850799d4b2e35e3b26ab160578d3c12d /src/mot-encoder.cpp
parent61f9c53fb58f5668174d0985a75197e8ca74de1b (diff)
downloadODR-PadEnc-4ed8967e8b4b9fd108532f175295d953eb54b87b.tar.gz
ODR-PadEnc-4ed8967e8b4b9fd108532f175295d953eb54b87b.tar.bz2
ODR-PadEnc-4ed8967e8b4b9fd108532f175295d953eb54b87b.zip
Fix 128 char DLS null byte out-of-bounds write
Diffstat (limited to 'src/mot-encoder.cpp')
-rw-r--r--src/mot-encoder.cpp2
1 files changed, 1 insertions, 1 deletions
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;