[Bug 34829] wintrust:softpub crashes on Windows 8

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Feb 17 11:02:17 CST 2014


https://bugs.winehq.org/show_bug.cgi?id=34829

--- Comment #5 from François Gouget <fgouget at codeweavers.com> ---
(In reply to comment #4)
> Sure it does, I meant it's not initialized to sizeof(CRYPT_PROVIDER_DATA).

My understanding is that it is initialized to sizeof(CRYPT_PROVIDER_DATA):

From
https://stackoverflow.com/questions/10828294/c-and-c-partial-initialization-of-automatic-structure
---
C99 Standard 6.7.8.21

    If there are fewer initializers in a brace-enclosed list than there are
elements or members of an aggregate, or fewer characters in a string literal
used to initialize an array of known size than there are elements in the array,
the remainder of the aggregate shall be initialized implicitly the same as
objects that have static storage duration.
---

Objects (aggregates, arrays, etc.) that have static storage duration are always
initializaed to all zeroes.

Now we may have trouble if the compiler does not follow the C99 standard but
the WineTestBot run I referenced shows that this is not the case here.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list