Closed Bug 1622253 Opened 6 years ago Closed 3 years ago

`MOZ_CAN_RUN_SCRIPT` analysis doesn't understand aliased stacked-allocated array element is strong reference.

Categories

(Developer Infrastructure :: Source Code Analysis, defect, P3)

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1620312

People

(Reporter: mbrodesser, Unassigned)

Details

When the method AddRangeAndSelectFramesAndNotifyListeners is annotated with MOZ_CAN_RUN_SCRIPT, the static analysis warns for https://searchfox.org/mozilla-central/rev/278046367dab878316f60f0bd7f740cf73f3c447/editor/libeditor/EditorBase.cpp#3383,3495,3543 that range.mSelection is not a strong reference, but it is.

Priority: -- → P3

Similarly here, when RegisterSelection is annotated with MOZ_CAN_RUN_SCRIPT. In this case, it's an array without an alias.

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Severity: normal → S3
Product: Firefox Build System → Developer Infrastructure
Status: NEW → RESOLVED
Closed: 3 years ago
Duplicate of bug: 1620312
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.