summaryrefslogtreecommitdiffhomepage
path: root/src/ldso
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldso')
-rw-r--r--src/ldso/pe_get_framework_runtime_data.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ldso/pe_get_framework_runtime_data.c b/src/ldso/pe_get_framework_runtime_data.c
index 6e024c3..ba9d903 100644
--- a/src/ldso/pe_get_framework_runtime_data.c
+++ b/src/ldso/pe_get_framework_runtime_data.c
@@ -231,7 +231,8 @@ int32_t pe_get_framework_runtime_data(
return OS_STATUS_INTERNAL_ERROR;
/* framework cmdline */
- fcmdline = (struct pe_framework_cmdline *)cmdline;
+ if (!(fcmdline = (struct pe_framework_cmdline *)cmdline))
+ return OS_STATUS_INVALID_PARAMETER;
/* framework cmdline: conformance */
if (fcmdline->null)