dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #11777
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3440: Fixed bug, array-index-out-of-bounds vulnerability in charts
------------------------------------------------------------
revno: 3440
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-04-21 17:15:12 +0200
message:
Fixed bug, array-index-out-of-bounds vulnerability in charts
modified:
dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/chart/impl/DefaultChartService.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/chart/impl/DefaultChartService.java'
--- dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/chart/impl/DefaultChartService.java 2011-04-19 07:56:55 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/chart/impl/DefaultChartService.java 2011-04-21 15:15:12 +0000
@@ -527,7 +527,7 @@
for ( int i = 0; i < dataSets[0].getColumnCount(); i++ )
{
- piePlot.setSectionPaint( dataSets[0].getColumnKey( i ), colors[i] );
+ piePlot.setSectionPaint( dataSets[0].getColumnKey( i ), colors[ ( i % colors.length ) ] );
}
return multiplePieChart;