Open Bug 1729686 Opened 3 years ago Updated 3 years ago

Mixed slashes from __FILE__ macro lead to substitution error

Categories

(Core :: Storage: Quota Manager, task, P3)

Firefox 94
x86_64
Windows 10
task

Tracking

()

Tracking Status
firefox94 --- affected

People

(Reporter: jjalkanen, Unassigned)

Details

Attachments

(1 file)

Macro __FILE__ is what compiler receives during compilation and may contain mixed slashes on Windows.

If absolute paths or build-time resources are probed by matching the known relative path to the value of the macro, the system dependent slashes need to be handled.

This issue triggers the assert in dom::quota::GetTreeBase around line 212 during unit test
TEST(QuotaCommon_MakeSourceFileRelativePath, DomQuotaSourceFile_Exported)
in file
dom\quota\test\gtest\TestQuotaCommon.cpp
on Windows platform.

The affected function is only used to generate information for error messages and as a consequence the error messages might contain less or malformed information.

Severity: -- → S4
Type: defect → task
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: