[Static Analysis] Errors in accessible/atk/

RESOLVED FIXED in Firefox 63

Status

()

P3
normal
RESOLVED FIXED
5 months ago
5 months ago

People

(Reporter: rbartlensky, Assigned: rbartlensky)

Tracking

(Blocks: 1 bug)

unspecified
mozilla63
Points:
---

Firefox Tracking Flags

(firefox63 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 months ago
accessible/atk/nsMaiInterfaceTableCell.cpp:58: error: NULL_DEREFERENCE
  pointer `cell` last assigned on line 57 could be null and is dereferenced at line 58, column 13.
  56.     if (AccessibleWrap* accWrap = GetAccessibleWrap(ATK_OBJECT(aCell))) {
  57.       TableCellAccessible* cell = accWrap->AsTableCell();
  58. >     *aRow = cell->RowIdx();
  59.       *aCol = cell->ColIdx();
  60.       return true;

accessible/atk/nsMaiInterfaceTableCell.cpp:79: error: NULL_DEREFERENCE
  pointer `cellAcc` last assigned on line 78 could be null and is dereferenced at line 79, column 13.
  77.     if (AccessibleWrap* accWrap = GetAccessibleWrap(ATK_OBJECT(aCell))) {
  78.       TableCellAccessible* cellAcc = accWrap->AsTableCell();
  79. >     *aCol = cellAcc->ColIdx();
  80.       *aRow = cellAcc->RowIdx();
  81.       *aColExtent = cellAcc->ColExtent();

accessible/atk/nsMaiInterfaceDocument.cpp:88: error: NULL_DEREFERENCE
  pointer `document` last assigned on line 87 could be null and is dereferenced at line 88, column 5.
  86.
  87.       DocAccessible* document = accWrap->AsDoc();
  88. >     document->URL(url);
  89.       document->DocType(w3cDocType);
  90.       document->MimeType(mimeType);
(Assignee)

Updated

5 months ago
Blocks: 1175203
(Assignee)

Comment 1

5 months ago
Last issue is a False Positive.
Comment hidden (mozreview-request)
Comment hidden (mozreview-request)
Comment hidden (mozreview-request)
Comment on attachment 8992338 [details]
Bug 1475964: Add null checks in nsMaiInterfaceTableCell.cpp.

https://reviewboard.mozilla.org/r/257208/#review265242
Attachment #8992338 - Flags: review?(dbolter) → review+
(Assignee)

Updated

5 months ago
Keywords: checkin-needed

Comment 6

5 months ago
Pushed by apavel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b3cfdf00c7f2
Add null checks in nsMaiInterfaceTableCell.cpp. r=davidb
Keywords: checkin-needed

Comment 7

5 months ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/b3cfdf00c7f2
Status: NEW → RESOLVED
Last Resolved: 5 months ago
status-firefox63: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.