Global Metrics
path: .metrics.cyclomatic.average
old: 3.9
new: 6.166666666666667
path: .metrics.cyclomatic.sum
old: 78.0
new: 37.0
path: .metrics.halstead.level
old: 0.014130434782608696
new: 0.02857142857142857
path: .metrics.halstead.N1
old: 810.0
new: 566.0
path: .metrics.halstead.n2
old: 117.0
new: 160.0
path: .metrics.halstead.volume
old: 9216.882560219668
new: 7297.732830720598
path: .metrics.halstead.effort
old: 652271.6888770843
new: 255420.64907522092
path: .metrics.halstead.difficulty
old: 70.76923076923077
new: 35.0
path: .metrics.halstead.length
old: 1270.0
new: 966.0
path: .metrics.halstead.estimated_program_length
old: 989.9499722431816
new: 1306.114432999591
path: .metrics.halstead.time
old: 36237.316048726905
new: 14190.036059734495
path: .metrics.halstead.bugs
old: 2.50705828776786
new: 1.3418874198287687
path: .metrics.halstead.n1
old: 36.0
new: 28.0
path: .metrics.halstead.vocabulary
old: 153.0
new: 188.0
path: .metrics.halstead.N2
old: 460.0
new: 400.0
path: .metrics.halstead.purity_ratio
old: 0.7794881671206153
new: 1.3520853343681063
path: .metrics.loc.sloc
old: 345.0
new: 246.0
path: .metrics.loc.lloc
old: 122.0
new: 57.0
path: .metrics.loc.blank
old: 41.0
new: 21.0
path: .metrics.loc.cloc
old: 67.0
new: 40.0
path: .metrics.loc.ploc
old: 237.0
new: 185.0
path: .metrics.cognitive.sum
old: 33.0
new: 36.0
path: .metrics.cognitive.average
old: 1.9411764705882353
new: 9.0
path: .metrics.nargs.sum
old: 20.0
new: 5.0
path: .metrics.nargs.average
old: 1.1764705882352942
new: 1.25
path: .metrics.mi.mi_sei
old: -20.45293312031372
new: -3.669047580967664
path: .metrics.mi.mi_original
old: 10.924861304322675
new: 27.047970277517123
path: .metrics.mi.mi_visual_studio
old: 6.388807780305658
new: 15.81752647808019
path: .metrics.nexits.average
old: 2.9411764705882355
new: 3.75
path: .metrics.nexits.sum
old: 50.0
new: 15.0
path: .metrics.nom.functions
old: 17.0
new: 4.0
path: .metrics.nom.total
old: 17.0
new: 4.0
Spaces Data
Minimal test - lines (32, 80)
path: .spaces[1].metrics.nexits.average
old: 5.0
new: 7.0
path: .spaces[1].metrics.nexits.sum
old: 35.0
new: 7.0
path: .spaces[1].metrics.nargs.sum
old: 8.0
new: 4.0
path: .spaces[1].metrics.nargs.average
old: 1.1428571428571428
new: 4.0
path: .spaces[1].metrics.halstead.time
old: 19478.72993376784
new: 1416.07428848074
path: .spaces[1].metrics.halstead.effort
old: 350617.13880782115
new: 25489.33719265332
path: .spaces[1].metrics.halstead.bugs
old: 1.6574260974830213
new: 0.28870287380810766
path: .spaces[1].metrics.halstead.length
old: 778.0
new: 214.0
path: .spaces[1].metrics.halstead.purity_ratio
old: 0.7005578322221628
new: 1.5587474356662738
path: .spaces[1].metrics.halstead.N2
old: 287.0
new: 89.0
path: .spaces[1].metrics.halstead.volume
old: 5123.1008255610595
new: 1288.786711988089
path: .spaces[1].metrics.halstead.n2
old: 65.0
new: 45.0
path: .spaces[1].metrics.halstead.N1
old: 491.0
new: 125.0
path: .spaces[1].metrics.halstead.difficulty
old: 68.43846153846154
new: 19.77777777777778
path: .spaces[1].metrics.halstead.estimated_program_length
old: 545.0339934688427
new: 333.5719512325826
path: .spaces[1].metrics.halstead.level
old: 0.014611666853995727
new: 0.05056179775280899
path: .spaces[1].metrics.halstead.n1
old: 31.0
new: 20.0
path: .spaces[1].metrics.halstead.vocabulary
old: 96.0
new: 65.0
path: .spaces[1].metrics.loc.ploc
old: 144.0
new: 39.0
path: .spaces[1].metrics.loc.sloc
old: 207.0
new: 49.0
path: .spaces[1].metrics.loc.blank
old: 15.0
new: 8.0
path: .spaces[1].metrics.loc.cloc
old: 48.0
new: 2.0
path: .spaces[1].metrics.loc.lloc
old: 84.0
new: 19.0
path: .spaces[1].metrics.mi.mi_visual_studio
old: 16.7801618085551
new: 40.14206857260255
path: .spaces[1].metrics.mi.mi_original
old: 28.694076692629224
new: 68.64293725915036
path: .spaces[1].metrics.mi.mi_sei
old: 4.72241233649499
new: 39.64131894532143
path: .spaces[1].metrics.nom.total
old: 7.0
new: 1.0
path: .spaces[1].metrics.nom.functions
old: 7.0
new: 1.0
path: .spaces[1].metrics.cyclomatic.average
old: 6.25
new: 9.0
path: .spaces[1].metrics.cyclomatic.sum
old: 50.0
new: 9.0
path: .spaces[1].metrics.cognitive.average
old: 2.5714285714285716
new: 8.0
path: .spaces[1].metrics.cognitive.sum
old: 18.0
new: 8.0
Code
static bool GetPdbInfo(uintptr_t aStart, nsID& aSignature, uint32_t& aAge,
char** aPdbName) {
if (!aStart) {
return false;
}
PIMAGE_DOS_HEADER dosHeader = reinterpret_cast(aStart);
if (dosHeader->e_magic != IMAGE_DOS_SIGNATURE) {
return false;
}
PIMAGE_NT_HEADERS ntHeaders =
reinterpret_cast(aStart + dosHeader->e_lfanew);
if (ntHeaders->Signature != IMAGE_NT_SIGNATURE) {
return false;
}
uint32_t relativeVirtualAddress =
ntHeaders->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_DEBUG]
.VirtualAddress;
if (!relativeVirtualAddress) {
return false;
}
PIMAGE_DEBUG_DIRECTORY debugDirectory =
reinterpret_cast(aStart + relativeVirtualAddress);
if (!debugDirectory || debugDirectory->Type != IMAGE_DEBUG_TYPE_CODEVIEW) {
return false;
}
CodeViewRecord70* debugInfo = reinterpret_cast(
aStart + debugDirectory->AddressOfRawData);
if (!debugInfo || debugInfo->signature != CV_SIGNATURE) {
return false;
}
aAge = debugInfo->pdbAge;
GUID& pdbSignature = debugInfo->pdbSignature;
aSignature.m0 = pdbSignature.Data1;
aSignature.m1 = pdbSignature.Data2;
aSignature.m2 = pdbSignature.Data3;
memcpy(aSignature.m3, pdbSignature.Data4, sizeof(pdbSignature.Data4));
// The PDB file name could be different from module filename, so report both
// e.g. The PDB for C:\Windows\SysWOW64\ntdll.dll is wntdll.pdb
*aPdbName = debugInfo->pdbFileName;
return true;
}
Minimal test - lines (110, 243)
path: .spaces[3].metrics.halstead.purity_ratio
old: 1.6068899850521434
new: 1.257062309990904
path: .spaces[3].metrics.halstead.N1
old: 50.0
new: 343.0
path: .spaces[3].metrics.halstead.estimated_program_length
old: 117.30296890880646
new: 730.3532021047153
path: .spaces[3].metrics.halstead.difficulty
old: 13.142857142857142
new: 33.26881720430107
path: .spaces[3].metrics.halstead.n2
old: 14.0
new: 93.0
path: .spaces[3].metrics.halstead.time
old: 261.5450574611652
new: 7403.95516055618
path: .spaces[3].metrics.halstead.bugs
old: 0.09363209920794244
new: 0.8697002641364784
path: .spaces[3].metrics.halstead.volume
old: 358.2030134794219
new: 4005.889120481915
path: .spaces[3].metrics.halstead.length
old: 73.0
new: 581.0
path: .spaces[3].metrics.halstead.level
old: 0.07608695652173914
new: 0.03005817711700065
path: .spaces[3].metrics.halstead.N2
old: 23.0
new: 238.0
path: .spaces[3].metrics.halstead.effort
old: 4707.811034300973
new: 133271.19289001124
path: .spaces[3].metrics.halstead.n1
old: 16.0
new: 26.0
path: .spaces[3].metrics.halstead.vocabulary
old: 30.0
new: 119.0
path: .spaces[3].metrics.mi.mi_original
old: 102.19640200085216
new: 43.91828688589544
path: .spaces[3].metrics.mi.mi_sei
old: 95.67146192787442
new: 23.599735535271293
path: .spaces[3].metrics.mi.mi_visual_studio
old: 59.763977778276114
new: 25.683208705202013
path: .spaces[3].metrics.nexits.average
old: 2.0
new: 3.0
path: .spaces[3].metrics.nexits.sum
old: 2.0
new: 3.0
path: .spaces[3].metrics.loc.cloc
old: 1.0
new: 31.0
path: .spaces[3].metrics.loc.lloc
old: 4.0
new: 29.0
path: .spaces[3].metrics.loc.blank
old: 0.0
new: 3.0
path: .spaces[3].metrics.loc.sloc
old: 10.0
new: 134.0
path: .spaces[3].metrics.loc.ploc
old: 9.0
new: 100.0
path: .spaces[3].metrics.nargs.sum
old: 2.0
new: 0.0
path: .spaces[3].metrics.nargs.average
old: 2.0
new: 0.0
path: .spaces[3].metrics.cognitive.average
old: 2.0
new: 24.0
path: .spaces[3].metrics.cognitive.sum
old: 2.0
new: 24.0
path: .spaces[3].metrics.cyclomatic.average
old: 4.0
new: 20.0
path: .spaces[3].metrics.cyclomatic.sum
old: 4.0
new: 20.0
Code
SharedLibraryInfo SharedLibraryInfo::GetInfoForSelf() {
SharedLibraryInfo sharedLibraryInfo;
HANDLE hProcess = GetCurrentProcess();
mozilla::UniquePtr hMods;
size_t modulesNum = 0;
if (hProcess != NULL) {
DWORD modulesSize;
if (!EnumProcessModules(hProcess, nullptr, 0, &modulesSize)) {
return sharedLibraryInfo;
}
modulesNum = modulesSize / sizeof(HMODULE);
hMods = mozilla::MakeUnique(modulesNum);
if (!EnumProcessModules(hProcess, hMods.get(), modulesNum * sizeof(HMODULE),
&modulesSize)) {
return sharedLibraryInfo;
}
// The list may have shrunk between calls
if (modulesSize / sizeof(HMODULE) < modulesNum) {
modulesNum = modulesSize / sizeof(HMODULE);
}
}
for (unsigned int i = 0; i < modulesNum; i++) {
WCHAR modulePath[MAX_PATH + 1];
if (!GetModuleFileNameEx(hProcess, hMods[i], modulePath,
sizeof(modulePath) / sizeof(WCHAR))) {
continue;
}
MODULEINFO module = {0};
if (!GetModuleInformation(hProcess, hMods[i], &module,
sizeof(MODULEINFO))) {
continue;
}
nsAutoString modulePathStr(modulePath);
nsAutoString moduleNameStr = modulePathStr;
int32_t pos = moduleNameStr.RFindCharInSet(u"\\/");
if (pos != kNotFound) {
moduleNameStr.Cut(0, pos + 1);
}
// Hackaround for Bug 1607574. Nvidia's shim driver nvd3d9wrap[x].dll
// detours LoadLibraryExW when it's loaded and the detour function causes
// AV when the code tries to access data pointing to an address within
// unloaded nvinit[x].dll.
// The crashing code is executed when a given parameter is "detoured.dll"
// and OS version is older than 6.2. We hit that crash at the following
// call to LoadLibraryEx even if we specify LOAD_LIBRARY_AS_DATAFILE.
// We work around it by skipping LoadLibraryEx, and add a library info with
// a dummy breakpad id instead.
#if !defined(_M_ARM64)
# if defined(_M_AMD64)
LPCWSTR kNvidiaShimDriver = L"nvd3d9wrapx.dll";
LPCWSTR kNvidiaInitDriver = L"nvinitx.dll";
# elif defined(_M_IX86)
LPCWSTR kNvidiaShimDriver = L"nvd3d9wrap.dll";
LPCWSTR kNvidiaInitDriver = L"nvinit.dll";
# endif
if (moduleNameStr.LowerCaseEqualsLiteral("detoured.dll") &&
!mozilla::IsWin8OrLater() && ::GetModuleHandle(kNvidiaShimDriver) &&
!::GetModuleHandle(kNvidiaInitDriver)) {
constexpr auto pdbNameStr = u"detoured.pdb"_ns;
SharedLibrary shlib((uintptr_t)module.lpBaseOfDll,
(uintptr_t)module.lpBaseOfDll + module.SizeOfImage,
0, // DLLs are always mapped at offset 0 on Windows
"000000000000000000000000000000000"_ns, moduleNameStr,
modulePathStr, pdbNameStr, pdbNameStr, ""_ns, "");
sharedLibraryInfo.AddSharedLibrary(shlib);
continue;
}
#endif // !defined(_M_ARM64)
// If EAF+ is enabled, parsing ntdll's PE header via GetPdbInfo() causes
// a crash. We don't include PDB information in SharedLibrary.
bool canGetPdbInfo = (!mozilla::IsEafPlusEnabled() ||
!moduleNameStr.LowerCaseEqualsLiteral("ntdll.dll"));
nsCString breakpadId;
// Load the module again to make sure that its handle will remain
// valid as we attempt to read the PDB information from it. We load the
// DLL as a datafile so that if the module actually gets unloaded between
// the call to EnumProcessModules and the following LoadLibraryEx, we don't
// end up running the now newly loaded module's DllMain function. If the
// module is already loaded, LoadLibraryEx just increments its refcount.
//
// Note that because of the race condition above, merely loading the DLL
// again is not safe enough, therefore we also need to make sure that we
// can read the memory mapped at the base address before we can safely
// proceed to actually access those pages.
HMODULE handleLock =
LoadLibraryEx(modulePath, NULL, LOAD_LIBRARY_AS_DATAFILE);
MEMORY_BASIC_INFORMATION vmemInfo = {0};
nsID pdbSig;
uint32_t pdbAge;
nsAutoString pdbPathStr;
nsAutoString pdbNameStr;
char* pdbName = nullptr;
if (handleLock &&
sizeof(vmemInfo) ==
VirtualQuery(module.lpBaseOfDll, &vmemInfo, sizeof(vmemInfo)) &&
vmemInfo.State == MEM_COMMIT && canGetPdbInfo &&
GetPdbInfo((uintptr_t)module.lpBaseOfDll, pdbSig, pdbAge, &pdbName)) {
MOZ_ASSERT(breakpadId.IsEmpty());
breakpadId.AppendPrintf(
"%08X" // m0
"%04X%04X" // m1,m2
"%02X%02X%02X%02X%02X%02X%02X%02X" // m3
"%X", // pdbAge
pdbSig.m0, pdbSig.m1, pdbSig.m2, pdbSig.m3[0], pdbSig.m3[1],
pdbSig.m3[2], pdbSig.m3[3], pdbSig.m3[4], pdbSig.m3[5], pdbSig.m3[6],
pdbSig.m3[7], pdbAge);
pdbPathStr = NS_ConvertUTF8toUTF16(pdbName);
pdbNameStr = pdbPathStr;
int32_t pos = pdbNameStr.RFindCharInSet(u"\\/");
if (pos != kNotFound) {
pdbNameStr.Cut(0, pos + 1);
}
}
SharedLibrary shlib((uintptr_t)module.lpBaseOfDll,
(uintptr_t)module.lpBaseOfDll + module.SizeOfImage,
0, // DLLs are always mapped at offset 0 on Windows
breakpadId, moduleNameStr, modulePathStr, pdbNameStr,
pdbPathStr, GetVersion(modulePath), "");
sharedLibraryInfo.AddSharedLibrary(shlib);
FreeLibrary(handleLock); // ok to free null handles
}
return sharedLibraryInfo;
}
Minimal test - lines (245, 246)
path: .spaces[4].metrics.mi.mi_sei
old: 74.81552260749099
new: 180.63289497511863
path: .spaces[4].metrics.mi.mi_original
old: 104.04769608786572
new: 146.79146936754594
path: .spaces[4].metrics.mi.mi_visual_studio
old: 60.84660589933669
new: 85.84296454242453
path: .spaces[4].metrics.nargs.average
old: 2.0
new: 0.0
path: .spaces[4].metrics.nargs.sum
old: 2.0
new: 0.0
path: .spaces[4].metrics.halstead.N2
old: 21.0
new: 1.0
path: .spaces[4].metrics.halstead.difficulty
old: 13.73076923076923
new: 2.0
path: .spaces[4].metrics.halstead.bugs
old: 0.09463500437492504
new: 0.002712967490108627
path: .spaces[4].metrics.halstead.time
old: 265.75845283523313
new: 1.289960052715201
path: .spaces[4].metrics.halstead.vocabulary
old: 30.0
new: 5.0
path: .spaces[4].metrics.halstead.N1
old: 50.0
new: 4.0
path: .spaces[4].metrics.halstead.estimated_program_length
old: 117.59258463708996
new: 8.0
path: .spaces[4].metrics.halstead.n2
old: 13.0
new: 1.0
path: .spaces[4].metrics.halstead.level
old: 0.07282913165266107
new: 0.5
path: .spaces[4].metrics.halstead.purity_ratio
old: 1.656233586437887
new: 1.6
path: .spaces[4].metrics.halstead.effort
old: 4783.652151034196
new: 23.21928094887362
path: .spaces[4].metrics.halstead.length
old: 71.0
new: 5.0
path: .spaces[4].metrics.halstead.n1
old: 17.0
new: 4.0
path: .spaces[4].metrics.halstead.volume
old: 348.3892322882048
new: 11.60964047443681
path: .spaces[4].metrics.nexits.average
old: 2.0
new: 0.0
path: .spaces[4].metrics.nexits.sum
old: 2.0
new: 0.0
path: .spaces[4].metrics.cognitive.average
old: 2.0
new: 0.0
path: .spaces[4].metrics.cognitive.sum
old: 2.0
new: 0.0
path: .spaces[4].metrics.loc.lloc
old: 4.0
new: 0.0
path: .spaces[4].metrics.loc.ploc
old: 9.0
new: 2.0
path: .spaces[4].metrics.loc.sloc
old: 9.0
new: 2.0
path: .spaces[4].metrics.loc.cloc
old: 0.0
new: 1.0
path: .spaces[4].metrics.cyclomatic.average
old: 4.0
new: 1.0
path: .spaces[4].metrics.cyclomatic.sum
old: 4.0
new: 1.0
Code
void SharedLibraryInfo::Initialize() { /* do nothing */
}
Minimal test - lines (82, 108)
path: .spaces[2].metrics.nexits.average
old: 2.0
new: 5.0
path: .spaces[2].metrics.nexits.sum
old: 2.0
new: 5.0
path: .spaces[2].metrics.cyclomatic.sum
old: 2.0
new: 5.0
path: .spaces[2].metrics.cyclomatic.average
old: 2.0
new: 5.0
path: .spaces[2].metrics.mi.mi_sei
old: 99.90967001092952
new: 42.93919222177013
path: .spaces[2].metrics.mi.mi_visual_studio
old: 59.12039834710046
new: 47.88428737189169
path: .spaces[2].metrics.mi.mi_original
old: 101.09588117354178
new: 81.88213140593479
path: .spaces[2].metrics.cognitive.sum
old: 1.0
new: 4.0
path: .spaces[2].metrics.cognitive.average
old: 1.0
new: 4.0
path: .spaces[2].metrics.halstead.n1
old: 16.0
new: 19.0
path: .spaces[2].metrics.halstead.n2
old: 12.0
new: 28.0
path: .spaces[2].metrics.halstead.vocabulary
old: 28.0
new: 47.0
path: .spaces[2].metrics.halstead.effort
old: 3653.589740763779
new: 14407.710779472058
path: .spaces[2].metrics.halstead.bugs
old: 0.07907246263450618
new: 0.19736739083798405
path: .spaces[2].metrics.halstead.difficulty
old: 13.333333333333334
new: 18.660714285714285
path: .spaces[2].metrics.halstead.N2
old: 20.0
new: 55.0
path: .spaces[2].metrics.halstead.level
old: 0.075
new: 0.05358851674641149
path: .spaces[2].metrics.halstead.volume
old: 274.01923055728344
new: 772.0878503831916
path: .spaces[2].metrics.halstead.purity_ratio
old: 1.8775359650641033
new: 1.5490400041225971
path: .spaces[2].metrics.halstead.time
old: 202.97720782020997
new: 800.4283766373366
path: .spaces[2].metrics.halstead.length
old: 57.0
new: 139.0
path: .spaces[2].metrics.halstead.N1
old: 37.0
new: 84.0
path: .spaces[2].metrics.halstead.estimated_program_length
old: 107.01955000865388
new: 215.31656057304104
path: .spaces[2].metrics.loc.ploc
old: 9.0
new: 24.0
path: .spaces[2].metrics.loc.sloc
old: 12.0
new: 27.0
path: .spaces[2].metrics.loc.blank
old: 1.0
new: 3.0
path: .spaces[2].metrics.loc.lloc
old: 5.0
new: 9.0
path: .spaces[2].metrics.loc.cloc
old: 2.0
new: 0.0
path: .spaces[2].metrics.nargs.average
old: 0.0
new: 1.0
path: .spaces[2].metrics.nargs.sum
old: 0.0
new: 1.0
Code
static nsCString GetVersion(WCHAR* dllPath) {
DWORD infoSize = GetFileVersionInfoSizeW(dllPath, nullptr);
if (infoSize == 0) {
return ""_ns;
}
mozilla::UniquePtr infoData =
mozilla::MakeUnique(infoSize);
if (!GetFileVersionInfoW(dllPath, 0, infoSize, infoData.get())) {
return ""_ns;
}
VS_FIXEDFILEINFO* vInfo;
UINT vInfoLen;
if (!VerQueryValueW(infoData.get(), L"\\", (LPVOID*)&vInfo, &vInfoLen)) {
return ""_ns;
}
if (!vInfo) {
return ""_ns;
}
nsPrintfCString version("%d.%d.%d.%d", vInfo->dwFileVersionMS >> 16,
vInfo->dwFileVersionMS & 0xFFFF,
vInfo->dwFileVersionLS >> 16,
vInfo->dwFileVersionLS & 0xFFFF);
return std::move(version);
}
Minimal test - lines (23, 30)
path: .spaces[0].metrics.loc.cloc
old: 1.0
new: 2.0
path: .spaces[0].metrics.loc.sloc
old: 6.0
new: 8.0
path: .spaces[0].metrics.loc.ploc
old: 3.0
new: 6.0
path: .spaces[0].metrics.loc.blank
old: 2.0
new: 0.0
path: .spaces[0].metrics.mi.mi_sei
old: 136.10781811434413
new: 127.03061139892824
path: .spaces[0].metrics.mi.mi_visual_studio
old: 73.83456235168784
new: 67.96014227538713
path: .spaces[0].metrics.mi.mi_original
old: 126.2571016213862
new: 116.211843290912
path: .spaces[0].metrics.halstead.N1
old: 5.0
new: 9.0
path: .spaces[0].metrics.halstead.length
old: 7.0
new: 16.0
path: .spaces[0].metrics.halstead.effort
old: 49.12871113600807
new: 110.70181179639351
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.944234353490973
new: 1.7282177784002015
path: .spaces[0].metrics.halstead.difficulty
old: 2.5
new: 2.0
path: .spaces[0].metrics.halstead.vocabulary
old: 7.0
new: 11.0
path: .spaces[0].metrics.halstead.N2
old: 2.0
new: 7.0
path: .spaces[0].metrics.halstead.level
old: 0.4
new: 0.5
path: .spaces[0].metrics.halstead.estimated_program_length
old: 13.60964047443681
new: 27.651484454403228
path: .spaces[0].metrics.halstead.n1
old: 5.0
new: 4.0
path: .spaces[0].metrics.halstead.n2
old: 2.0
new: 7.0
path: .spaces[0].metrics.halstead.time
old: 2.7293728408893374
new: 6.150100655355195
path: .spaces[0].metrics.halstead.bugs
old: 0.004471319041702271
new: 0.00768508303849811
path: .spaces[0].metrics.halstead.volume
old: 19.651484454403228
new: 55.35090589819676
Code
struct CodeViewRecord70 {
uint32_t signature;
GUID pdbSignature;
uint32_t pdbAge;
// A UTF-8 string, according to
// https://github.com/Microsoft/microsoft-pdb/blob/082c5290e5aff028ae84e43affa8be717aa7af73/PDB/dbi/locator.cpp#L785
char pdbFileName[1];
};