From: phantomjinx <pha...@us...> - 2012-07-11 09:14:04
|
commit 70a777bd7e51a4c76c15a905dfa2478a20e5aa1f Author: phantomjinx <p.g...@ph...> Date: Mon Jul 9 22:33:34 2012 +0100 Fix an identified buffer overflow 3536102 - Buffer overflow in atomic parsley libs/atomic-parsley/AtomicParsley.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/libs/atomic-parsley/AtomicParsley.cpp b/libs/atomic-parsley/AtomicParsley.cpp index 8603885..69830d5 100644 --- a/libs/atomic-parsley/AtomicParsley.cpp +++ b/libs/atomic-parsley/AtomicParsley.cpp @@ -1887,7 +1887,7 @@ char* APar_ExtractDataAtom(int this_atom_number) { } else { //purl & egid would end up here too, but Apple switched it to a text string (0x00), so gets taken care above explicitly - char* result = (char*) malloc(sizeof(char) * 6); + char* result = (char*) malloc(sizeof(char) * 7); sprintf(result, "hex 0x"); for (int hexx = 1; hexx <= (int) (thisAtom->AtomicLength - atom_header_size); ++hexx) { |