-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: error: ‘MEM[(struct AMFVariantStruct *)_2 + 40B].D.5758.stringValue’ may be used uninitialized #531
Labels
Comments
The same error on 1.4.36
|
What compiler and version are you using? As an experiment, could you try to set the pointers to NULL inside static AMF_INLINE AMF_RESULT AMF_CDECL_CALL AMFVariantInit(AMFVariantStruct* pVariant)
{
AMF_VARIANT_RETURN_IF_INVALID_POINTER(pVariant);
pVariant->type = AMF_VARIANT_EMPTY;
pVariant->pInterface = NULL;
pVariant->stringValue = NULL;
pVariant->wstringValue = NULL;
return AMF_OK;
} |
Hi @rhutsAMD, the patch solve the problem. Thank you. I'm using g++ (GCC) 14.2.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Compilation issue, unable to build samples with make all BUILD_TYPE=rel
To Reproduce
Steps to reproduce the behavior:
cd amf/public/samples
make all BUILD_TYPE=rel
Setup (please complete the following information):
Debug Log (please upload or paste):
The text was updated successfully, but these errors were encountered: