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 | 46198fde64b2e911af913874b5b1fab811220956 (patch) | |
tree | 8ccabbc84e022529f1c91dc8da7af3ad69b4b0e9 | |
parent | 8a856aeeb46333864e79e9468586dba7239aed99 (diff) | |
download | ODR-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.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; |