Open Bug 1716001 Opened 4 months ago Updated 2 months ago

Enumeration::Iterator swallows ICU errors

Categories

(Core :: Internationalization, defect, P3)

defect

Tracking

()

Tracking Status
firefox91 --- affected

People

(Reporter: anba, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [i18n-unification])

Enumeration::Iterator::AdvanceUEnum() doesn't differentiate for mNext == nullptr between ICU errors and end-of-enumeration:

  1. If U_FAILURE(status) is true, mNext is set to nullptr.
  2. When mNext is nullptr, mIteration = Nothing{} is executed.
  3. But mIteration.isNothing() is the iterator end condition.
Blocks: 1686965
Severity: -- → S3
Priority: -- → P3
Whiteboard: [i18n-unification]
You need to log in before you can comment on or make changes to this bug.