Closed
Bug 1161932
Opened 10 years ago
Closed 10 years ago
Silent a coverity warning in nsBidi.cpp
Categories
(Core :: Layout: Text and Fonts, defect)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
FIXED
mozilla41
People
(Reporter: Sylvestre, Assigned: tedders1)
References
(Blocks 1 open bug)
Details
(Keywords: coverity, Whiteboard: [CID 1296737])
Attachments
(1 file, 1 obsolete file)
2.36 KB,
patch
|
jocheng
:
approval-mozilla-b2g37+
|
Details | Diff | Splinter Review |
coverity thinks that there is an important issue in bug 1157726 (CID 1296737)
On this line:
https://dxr.mozilla.org/mozilla-central/source/layout/base/nsBidi.cpp?from=layout/base/nsBidi.cpp#782
coverity says:
CID 1296737 (#1 of 1): Out-of-bounds read (OVERRUN)158. overrun-local: Overrunning array stack of 127 2-byte elements at element index 4294967295 (byte offset 8589934590) using index stackLast (which evaluates to 4294967295).
Reporter | ||
Updated•10 years ago
|
Assignee: nobody → tclancy
Summary: Silent a warning warning → Silent a coverity warning
Reporter | ||
Updated•10 years ago
|
Summary: Silent a coverity warning → Silent a coverity warning in nsBidi.cpp
Assignee | ||
Comment 1•10 years ago
|
||
Hopefully this will stop the warnings.
Attachment #8604397 -
Flags: review?(smontagu)
Comment 2•10 years ago
|
||
Comment on attachment 8604397 [details] [diff] [review]
bug-1161932-coverity-warning.patch
Review of attachment 8604397 [details] [diff] [review]:
-----------------------------------------------------------------
::: layout/base/nsBidi.cpp
@@ +773,5 @@
> /* pop embedding entries */
> /* until the last isolate entry */
> stackLast--;
> +
> + // Since validIsolateCount is true, there must be an isolate entry
Nit: trailing whitespace
Attachment #8604397 -
Flags: review?(smontagu) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Green treeherder: https://treeherder.mozilla.org/#/jobs?repo=try&revision=328bc608cf19
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 6•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Assignee | ||
Comment 8•10 years ago
|
||
This is needed for Bug 1166203, which is a confirmed blocker for 2.2.
blocking-b2g: --- → 2.2?
Assignee | ||
Comment 9•10 years ago
|
||
Comment on attachment 8605014 [details] [diff] [review]
bug-1161932-coverity-warning.patch
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
RTL support for B2G (Bug 906270)
This patch is required for Bug 1166203, which is confirmed as blocking 2.2. (And probably a bunch of similar issues which haven't been spotted yet.)
User impact if declined:
Punctuation marks will appear in the wrong place when LTR phrases appear within RTL text, or vice versa.
Testing completed:
Green treeherder run - https://treeherder.mozilla.org/#/jobs?repo=try&revision=328bc608cf19
Risk to taking this patch (and alternatives if risky):
None forseen.
String or UUID changes made by this patch:
None.
Attachment #8605014 -
Flags: approval-mozilla-b2g37?
Comment 10•10 years ago
|
||
Hi Ryan,
This is the 3rd bug. Next one is 1163583.
Can you give me access to bug 1163583 for approval?
Thanks!
Flags: needinfo?(ryanvanderzanden)
Updated•10 years ago
|
Attachment #8605014 -
Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
Comment 11•10 years ago
|
||
(In reply to Josh Cheng [:josh] from comment #10)
> Hi Ryan,
> This is the 3rd bug. Next one is 1163583.
> Can you give me access to bug 1163583 for approval?
> Thanks!
Wrong email address there. Regardless, it has auto-approval anyway :). Also, FWIW, standard practice is to uplift patches in the same order that they landed on m-c.
status-b2g-v2.2:
--- → affected
status-b2g-master:
--- → fixed
status-firefox39:
--- → wontfix
status-firefox40:
--- → wontfix
Flags: needinfo?(ryanvanderzanden)
Comment 12•10 years ago
|
||
Updated•10 years ago
|
blocking-b2g: 2.2? → ---
Reporter | ||
Updated•7 years ago
|
Blocks: coverity-analysis
You need to log in
before you can comment on or make changes to this bug.
Description
•