CEGUI Logo
This issue tracker is now in read-only mode. We migrated all our old bug reports to our bitbucket issue tracker
Please use our new issue tracker to report bugs. You can easily find all mantis tickets on our new issue tracker by selecting the appropriate bitbucket repo (CEGUI/CEED/Silly) and searching for the mantis ticket ID number.

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000340CEGUICore library (CEGUIBase)public2010-03-11 03:072010-03-11 14:10
ReporterTimo 
Assigned ToCrazyEddie 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product VersionMercurial: default branch 
Target VersionFixed in VersionMercurial: default branch 
Summary0000340: Tiling causes a crash when area has negative dimensions
Descriptionv0-7 branch (revision 2464)

If there's a FrameComponent/ImageComponent with <HorzFormat type="Tiled"/> or <VertFormat type="Tiled"/>, and the corresponding dimension of the StateImagery area becomes negative, this will cause a crash (std::bad_alloc).

The problem occurs because the tile count variable wraps around:

horzTiles = (uint)((destRect.getWidth() + (imgSz.d_width - 1)) / imgSz.d_width);
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000421)
CrazyEddie (administrator)
2010-03-11 10:45

Thanks for the report.
(0000424)
CrazyEddie (administrator)
2010-03-11 14:10

Fixed in branches/v0-7 @ r2468.

The fix resolves the crash, but does not reverse the direction of the tiling (or swap the edges to be correct) - so under these circumstances all the copies of the tiled image get clipped.

If you think the image should be drawn under these conditions, feel free to raise a request; though it may not get serviced as quickly as a crash-bug ;)

- Issue History
Date Modified Username Field Change
2010-03-11 03:07 Timo New Issue
2010-03-11 10:45 CrazyEddie Note Added: 0000421
2010-03-11 10:45 CrazyEddie Status new => acknowledged
2010-03-11 13:35 CrazyEddie Status acknowledged => assigned
2010-03-11 13:35 CrazyEddie Assigned To => CrazyEddie
2010-03-11 13:35 CrazyEddie Status assigned => confirmed
2010-03-11 14:10 CrazyEddie Note Added: 0000424
2010-03-11 14:10 CrazyEddie Status confirmed => resolved
2010-03-11 14:10 CrazyEddie Fixed in Version 0.8.3 => Mercurial: default branch
2010-03-11 14:10 CrazyEddie Resolution open => fixed
Get Crazy Eddies GUI System at SourceForge.net. Fast, secure and Free Open Source software downloads


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker