[Bug 10649] Regression in RegQueryValueExA when called in unorthodox manner

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Dec 2 15:44:31 CST 2007


http://bugs.winehq.org/show_bug.cgi?id=10649


Zac Brown <zac at zacbrown.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zac at zacbrown.org




--- Comment #1 from Zac Brown <zac at zacbrown.org>  2007-12-02 15:44:30 ---
This is an issue you should resolve in your own program, and is not something
that should be fixed in wine in my opinion as our code reflects the expected
in/out's of the method as defined on
msdn(http://msdn2.microsoft.com/en-us/library/ms724911.aspx). 

If you read the above msdn doc, you'll see that the RegQueryValueEx function
expects to have a count passed in but also a count AND type to pass back out.
If you pass in the same memory location, of course you're going to end up with
a buffer overrun the way its written in wine. 

My opinion is that you should call the function as intended rather than list
this "undefined behavior" as a bug in wine. 


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list