raw_pdb
raw_pdb copied to clipboard
Examples project: NULL pointer dereference from appending NULL string
After compiling and running the example project with no modifications, it is crashing with a NULL pointer dereference as a result of appending a NULL char *
in ExampleTypes.cpp on line 428.
I've uploaded a crash dump here: https://easyupload.io/91x81r
PDB: https://groups.google.com/a/chromium.org/g/chromium-dev/c/6eJ_GVhjCmE (.\RetrieveSymbols.exe D86C58DD-F8A3-6DD3-4C4C-44205044422E 1 chrome.dll.pdb)
Crash location
methodPrototype += typeName; // Line 428: typeName=nullptr
Callstack
Examples.exe!std::_Narrow_char_traits<char,int>::length(const char * const _First) Line 398 C++
Examples.exe!std::string::append(const char * const _Ptr) Line 3170 C++
Examples.exe!std::string::operator+=(const char * const _Ptr) Line 3112 C++
Examples.exe!GetMethodPrototype(const PDB::TPIStream & tpiStream, const PDB::CodeView::TPI::Record * methodRecord, std::string & methodPrototype) Line 429 C++
Examples.exe!DisplayFields(const PDB::TPIStream & tpiStream, const PDB::CodeView::TPI::Record * record) Line 669 C++
Examples.exe!ExampleTypes(const PDB::TPIStream & tpiStream) Line 769 C++
Examples.exe!main(int argc, char * * argv) Line 153 C++
Would you mind taking a look @FaerHack?