Author: dquintana Date: Tue Jun 20 21:32:42 2017 New Revision: 75156
URL: http://svn.reactos.org/svn/reactos?rev=75156&view=rev Log: [NTOBJSHEX] Fix crash showing registry keys that have values. CORE-13456 #resolve
Modified: trunk/reactos/dll/shellext/ntobjshex/ntobjenum.cpp
Modified: trunk/reactos/dll/shellext/ntobjshex/ntobjenum.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/shellext/ntobjshex/ntob... ============================================================================== --- trunk/reactos/dll/shellext/ntobjshex/ntobjenum.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/shellext/ntobjshex/ntobjenum.cpp [iso-8859-1] Tue Jun 20 21:32:42 2017 @@ -437,7 +437,10 @@ otype = REG_ENTRY_VALUE_WITH_CONTENT; }
- RegPidlEntry* entry = (RegPidlEntry*) CoTaskMemAlloc(entryBufferLength + 2); + // allocate space for the terminator + entryBufferLength += 2; + + RegPidlEntry* entry = (RegPidlEntry*) CoTaskMemAlloc(entryBufferLength); if (!entry) return E_OUTOFMEMORY;