aboutsummaryrefslogtreecommitdiffstats
path: root/launcher
diff options
context:
space:
mode:
authorDeepak Bhole <[email protected]>2011-02-15 17:02:05 -0500
committerDeepak Bhole <[email protected]>2011-02-15 17:02:05 -0500
commite0cc53235475ba113fd9781e3951e05a0d5ae005 (patch)
tree27cb2f03e10f7c4a10190ad5b7129b97741265f5 /launcher
parent3012689e6edc3ce5c6f21602166c906201217e7b (diff)
Fix S6983554, CVE-2010-4450: Launcher incorrect processing of empty library path entries
Diffstat (limited to 'launcher')
-rw-r--r--launcher/java_md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/java_md.c b/launcher/java_md.c
index e3e5e6f..2e0e96b 100644
--- a/launcher/java_md.c
+++ b/launcher/java_md.c
@@ -484,7 +484,7 @@ CreateExecutionEnvironment(int *_argcp,
* LD_LIBRARY_PATH. Note that this prevents any possible infinite
* loop of execv() because we test for the prefix, above.
*/
- if (runpath != 0) {
+ if (runpath != 0 && (runpath[0] != '\0')) {
strcat(new_runpath, ":");
strcat(new_runpath, runpath);
}