[Marble-bugs] [marble] [Bug 322841] New: the function "uint StackedTile::pixel( int x, int y ) const" in StackTile.cpp cause crash

Zhao Nai zhao67865 at 163.com
Fri Jul 26 10:53:05 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=322841

            Bug ID: 322841
           Summary: the function "uint StackedTile::pixel( int x, int y )
                    const" in StackTile.cpp cause crash
    Classification: Unclassified
           Product: marble
           Version: unspecified
          Platform: Android
                OS: Android 4.x
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: marble-bugs at kde.org
          Reporter: zhao67865 at 163.com

I have ported it on android, but when I drag or zoom the map, It some times can
crash. And I have found the reason: the parameter y that pass into this
function makes the array (jumpTable8)[y][x] overstep the boundary. The status
of parameter y when it crash of each map I list below:
1. Atlas: when y is 675 it crash, position is line 87 in StackTile.cpp "return
(jumpTable8)[y][x];"
2. OpenStreetMap: y=256    line 89     return m_resultImage.color(
(jumpTable8)[y][x] );
3. Satellite View : y=675       line 92
4. Earth at Niget: y=675       line 92
5. Historical Map 1698: y=675 line 92
6. Precipitation(July): y=675      line 87
7. Precipitation(December): y=675  line 87
8. Temperature(December): y=675 line 87
9. Temperature(July): y=675 line 87

so, my question is: how can y be pass a 256 or 675 while the image height is
256 or 675.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list