strcat+strcat+strcat == baaad"

Alexandre Julliard julliard at winehq.com
Thu Dec 5 10:16:50 CST 2002


vkxzjq6lg at cswebmail.com writes:

> Wine also needs to remember that hostile Windows program developers may
> deliberately try to break programs under wine by passing invalid parameters.
> Even if wine doesn't check all of those, it shouldn't die when it happens.

Yes it should, just like glibc should crash if you pass it bad
pointers. What you are suggesting is the Microsoft approach: swipe
bugs under the rug and let the app stumble along a bit further before
dying, possibly corrupting files in the process. It's the kind of
thinking that leads to having an exception handler inside strlen()
like Windows does. It's just plain wrong.

(Of course we have to be compatible, and we have to hide bugs where
actual applications depend on Windows doing it; but that doesn't mean
it's the right philosophy)

-- 
Alexandre Julliard
julliard at winehq.com



More information about the wine-devel mailing list