Firefox · DOM
CVE-2026-109725
Logic Error in DOM
Overview
High
Severity
—
CVSS
No
Exploited ITW
Fixed
Fix Status
Changed Functions
| Function | Change | Notes |
|---|---|---|
fordom/base/nsImageLoadingContent.cpp |
modified |
Files Changed
dom/base/nsImageLoadingContent.cpp
Patch
diff --git a/dom/base/nsImageLoadingContent.cpp b/dom/base/nsImageLoadingContent.cpp
index 05a97b82378..93aa88b5a3a 100644
--- a/dom/base/nsImageLoadingContent.cpp
+++ b/dom/base/nsImageLoadingContent.cpp
@@ -1947,9 +1947,10 @@ Element* nsImageLoadingContent::FindImageMap() {
nsAutoString mapName(Substring(start, end));
- uint32_t i, n = imageMapList->Length(true);
- for (i = 0; i < n; ++i) {
- nsIContent* map = imageMapList->Item(i);
+ const bool kFlush = false;
+ const uint32_t n = imageMapList->Length(kFlush);
+ for (uint32_t i = 0; i < n; ++i) {
+ nsIContent* map = imageMapList->Item(i, kFlush);
if (map->AsElement()->AttrValueIs(kNameSpaceID_None, nsGkAtoms::id, mapName,
eCaseMatters) ||
map->AsElement()->AttrValueIs(kNameSpaceID_None, nsGkAtoms::name,
Loading diff…
References
On This Page