diff options
author | Stefan Pöschel <github@basicmaster.de> | 2015-04-10 15:51:32 +0200 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2015-04-10 15:51:32 +0200 |
commit | 4ed8967e8b4b9fd108532f175295d953eb54b87b (patch) | |
tree | 76d80ebb850799d4b2e35e3b26ab160578d3c12d /src/mot-encoder.cpp | |
parent | 61f9c53fb58f5668174d0985a75197e8ca74de1b (diff) | |
download | ODR-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.cpp | 2 |
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; |