Sourceforge shows only attachment of my previous message instead of
text, so I repost it without attachment.

07.01.2015 20:09, Oliver Eichler пишет:
>
> >
>
> > The second patch fixes numerous warnings "Warning: QImage::setColor:
>
> > Index out of bound" and crash in displaying Garmin maps from
>
> > http://velo100.ru/gps/download (site in Russian) with stranger.typ.
>
>  
>
> I am not sure if that fix is so good. If the value is above 256 it's
> probably because some flags are stored with the value. In that case it
> would be interesting to know their function. Any chance to find that out?
>
>  
>
> Oliver
>
Hi Oliver,

warnings and crash are not related.

As I remember my debugging, decodeColorTable is sometimes called with
maxcolor=1<<16. This results in a series of warnings.

I reproduced the crash and include the output of gdb. Full output is in
attachment.

> #9  0x0000000000746b3d in CMapTDB::drawLabels
> (this=this@entry=0x1065d790,
>     p=..., lbls=...) at
> /usr/src/debug/qlandkartegt-1.7.7/src/CMapTDB.cpp:3010
> 3010            CCanvas::drawText(lbl->str, p, lbl->pt, Qt::black,
> fonts[lbl->type]);
> (gdb) print lbl->type
> $1 = 7
> (gdb) 
Vector fonts has size 5 but index lbl->type=7. I don't know why, so I
simply increased the size of vector to maximum possible value of
lbl->type. It is always masked with 7, when assigned.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to