summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-10-18 00:39:20 +0000
committermidipix <writeonce@midipix.org>2017-10-19 18:18:47 -0400
commita4c09ff2ed6d5211ce2d52a406070674fc68c291 (patch)
treedd9959e19dc62256173adc444c7e0fd2d6451f07
parent49f412394160f539fe565284131dcbd8d6973f0d (diff)
downloadpemagine-a4c09ff2ed6d5211ce2d52a406070674fc68c291.tar.bz2
pemagine-a4c09ff2ed6d5211ce2d52a406070674fc68c291.tar.xz
pe_get_framework_runtime_data(): check that the cmdline parameter is not null.
-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)