Hello.

>> So it seems like the elements at indices from controlCount to 10 may not
>> be initialised but I don't see how this would be a problem since
>> PORT_NewCompoundControl
>> has no hardwired "10" .. it just uses controlCount.
>> In any case this would seem better addressed by the same kind of memset
>> after stack allocation that you proposed for the jpeg case.
> Fixed.  (I thought it's cheaper to initialize only the rest, and more simple
> for the C-compiler to remove where useless.)

It seems that some other implementations of PORT_NewCompoundControl can have 
the same issue, like in :
PLATFORM_API_BsdOS_ALSA_Ports.c and PLATFORM_API_SolarisOS_Ports.c. Should we 
apply the same memset there to make them in sync?

Reply via email to