aboutsummaryrefslogtreecommitdiffstats
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
commit46198fde64b2e911af913874b5b1fab811220956 (patch)
tree8ccabbc84e022529f1c91dc8da7af3ad69b4b0e9
parent8a856aeeb46333864e79e9468586dba7239aed99 (diff)
downloadODR-AudioEnc-46198fde64b2e911af913874b5b1fab811220956.tar.gz
ODR-AudioEnc-46198fde64b2e911af913874b5b1fab811220956.tar.bz2
ODR-AudioEnc-46198fde64b2e911af913874b5b1fab811220956.zip
Fix 128 char DLS null byte out-of-bounds write
-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;