Bug 1164090 - Check for Windows path separator in BHR file name; r=snorp

This commit is contained in:
Jim Chen 2015-05-19 11:27:18 -04:00
parent dc596951dd
commit bb5a648426

View File

@ -611,6 +611,11 @@ ThreadStackHelper::AppendJSEntry(const volatile StackEntry* aEntry,
// Only keep the file base name for paths outside the above formats.
basename = strrchr(filename, '/');
basename = basename ? basename + 1 : filename;
// Look for Windows path separator as well.
filename = strrchr(basename, '\\');
if (filename) {
basename = filename + 1;
}
}
size_t len = PR_snprintf(buffer, sizeof(buffer), "%s:%u", basename, lineno);