gujjula / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

CPTLegend rowCount bug #332

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There's the following incorrect line in CPTLegend

CGFloat *rowPositions = malloc(sizeof(CGFloat) * rowCount);
rowPositions[rowCount - 1] = self.paddingBottom;

rowCount can be 0 and in this case application can crash

Original issue reported on code.google.com by zapli...@gmail.com on 12 Sep 2011 at 9:18

GoogleCodeExporter commented 9 years ago
This issue was closed by revision f7f71c3c7041.

Original comment by eskr...@mac.com on 13 Sep 2011 at 1:24