[Gtkradiant] Bug with libs/ddslib/ddslib.c lines 693 to 723 on 64 bit systems.
Ciaran Gillespie
ciaran.gillespie at gmail.com
Thu Jan 17 01:28:54 CST 2008
Yes, I figured this after looking it over in the debugger. I was hoping that
a developer with better knowledge of the ins, and outs could figure it out
before I was forced to investigate further.
Thanks for the reply.
On Jan 17, 2008 12:06 AM, Forest Hale <lordhavoc at ghdigital.com> wrote:
> Ciaran Gillespie wrote:
> > On a 64 bit Linux system this function will segfault. It makes Quake 4
> level
> > editing impossible. GTKRadiant will sometimes segfault when I try to
> > selected any of the texture sets. If it does not segfault the textures
> > will not look correct, lots of colored artifacts. I debugged it, and
> > found the problem spot, but am not skilled enough to fix it.
> >
> > It look like the code assumes that both the pointer of unsigned char
> > *in, and unsigned char *out will be the same bit size, but in 64 bit I
> > believe this is creating the problem.
>
> All pointers are always the same size on a given architecture, the bug is
> somewhere else (possibly in the dds width/height reading for example?).
>
> Note that sizeof(size_t) is always equal to sizeof(void *), size_t is the
> correct type to use when pointer-size integer arithmetic is needed.
>
> --
> LordHavoc
> Author of DarkPlaces Quake1 engine and mod
> http://icculus.org/twilight/darkplaces/
> "War does not prove who is right, it proves who is left." - Unknown
> "Any sufficiently advanced technology is indistinguishable from a rigged
> demo." - James Klass
>
>
> _______________________________________________
> Gtkradiant mailing list
> Gtkradiant at zerowing.idsoftware.com
> http://zerowing.idsoftware.com/cgi-bin/mailman/listinfo/gtkradiant
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://zerowing.idsoftware.com/pipermail/gtkradiant/attachments/20080117/b1915211/attachment.htm
More information about the Gtkradiant
mailing list