Kaydet (Commit) d5ffe20b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735989 Dereference after null check

Change-Id: I668c8340777e21a7b829bd4e26ba4226da98a566
üst 89d4eb66
...@@ -237,7 +237,7 @@ GraphiteLayout::fillFrom(gr_segment * pSegment, ImplLayoutArgs &rArgs, float fSc ...@@ -237,7 +237,7 @@ GraphiteLayout::fillFrom(gr_segment * pSegment, ImplLayoutArgs &rArgs, float fSc
float rightBoundary = (clusterAfter)? float rightBoundary = (clusterAfter)?
gr_slot_origin_X(clusterAfter) : gr_seg_advance_X(pSegment); gr_slot_origin_X(clusterAfter) : gr_seg_advance_X(pSegment);
if ( if (
lastChar < iChar && lastChar < iChar && clusterAfter &&
(gr_cinfo_after(gr_seg_cinfo(pSegment, iChar)) > (gr_cinfo_after(gr_seg_cinfo(pSegment, iChar)) >
static_cast<int>(gr_slot_index(clusterAfter))) static_cast<int>(gr_slot_index(clusterAfter)))
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment