Re: unaligned access bug in winspool on sparc

2004-10-25 Thread Alexandre Julliard
Juan Lang <[EMAIL PROTECTED]> writes: >> Do you feel it's reasonable just to turn on >> ST_FIX_ALIGN, which *could* mask >> errors both in wine and in the user's code? > > It may indeed. The masking problems in user code > bothers me, though, since you're using winelib and you > may not have a pr

Re: unaligned access bug in winspool on sparc

2004-10-25 Thread Juan Lang
--- Eric Frias <[EMAIL PROTECTED]> wrote: > I did some more reading, and found there's a way to > get the kernel to > install a handler for unaligned accesses which will > synthesize the unaligned > access with two aligned accesses, and then jump back > to the original point > in the code. Interes

Re: unaligned access bug in winspool on sparc

2004-10-25 Thread Eric Frias
Juan Lang a écrit : > Yikes. That's a bad one. The trouble is MS loves > this sort of return value. Even if the dll itself > doesn't dereference an unaligned pointer, the caller > might depending on how things are layed out. The > trouble is i386 allows unaligned memory access, so we > don't se

Re: unaligned access bug in winspool on sparc

2004-10-22 Thread Eric Pouech
Juan Lang a écrit : I just ran across an evil little bug in the WINSPOOL_GetPrinter_2 function. It looks like this type of bug could be hiding in other API functions too. It causes a segmentation fault because of an unaligned access on Solaris (sparc). Yikes. That's a bad one. The trouble is

Re: unaligned access bug in winspool on sparc

2004-10-22 Thread Juan Lang
> I just ran across an evil little bug in the > WINSPOOL_GetPrinter_2 function. It looks like this > type of bug could be hiding in other API functions > too. It causes a segmentation fault because of an > unaligned access on Solaris (sparc). Yikes. That's a bad one. The trouble is MS loves t

unaligned access bug in winspool on sparc

2004-10-22 Thread Eric Frias
I just ran across an evil little bug in the WINSPOOL_GetPrinter_2 function. It looks like this type of bug could be hiding in other API functions too. It causes a segmentation fault because of an unaligned access on Solaris (sparc). This function packs a PRINTER_INFO_2 structure and all of its var