/hg/release/icedtea6-1.8: Commit patch from Paulo Cesar Pereira ...
dbhole at icedtea.classpath.org
dbhole at icedtea.classpath.org
Wed Apr 21 08:33:18 PDT 2010
changeset a6a02193b073 in /hg/release/icedtea6-1.8
details: http://icedtea.classpath.org/hg/release/icedtea6-1.8?cmd=changeset;node=a6a02193b073
author: Deepak Bhole <dbhole at redhat.com>
date: Wed Apr 21 11:33:13 2010 -0400
Commit patch from Paulo Cesar Pereira de Andrade for IcedTea Bug#
474, incrementing malloc size to account for NULL terminator.
diffstat:
2 files changed, 7 insertions(+), 1 deletion(-)
ChangeLog | 6 ++++++
plugin/icedteanp/IcedTeaNPPlugin.cc | 2 +-
diffs (25 lines):
diff -r d1ad52447673 -r a6a02193b073 ChangeLog
--- a/ChangeLog Wed Apr 14 12:21:30 2010 +0200
+++ b/ChangeLog Wed Apr 21 11:33:13 2010 -0400
@@ -1,3 +1,9 @@ 2010-04-12 Andrew John Hughes <ahughes
+2010-04-21 Deepak Bhole <dbhole at redhat.com>
+
+ * plugin/icedteanp/IcedTeaNPPlugin.cc
+ (plugin_filter_environment): Increment malloc size by one to account for
+ NULL terminator. Bug# 474.
+
2010-04-12 Andrew John Hughes <ahughes at redhat.com>
PR icedtea/373
diff -r d1ad52447673 -r a6a02193b073 plugin/icedteanp/IcedTeaNPPlugin.cc
--- a/plugin/icedteanp/IcedTeaNPPlugin.cc Wed Apr 14 12:21:30 2010 +0200
+++ b/plugin/icedteanp/IcedTeaNPPlugin.cc Wed Apr 21 11:33:13 2010 -0400
@@ -1464,7 +1464,7 @@ plugin_filter_environment(void)
plugin_filter_environment(void)
{
gchar **var_names = g_listenv();
- gchar **new_env = (gchar**) malloc(sizeof(gchar*) * g_strv_length (var_names));
+ gchar **new_env = (gchar**) malloc(sizeof(gchar*) * (g_strv_length (var_names) + 1));
int i_var, i_env;
for (i_var = 0, i_env = 0; var_names[i_var] != NULL; i_var++)
More information about the distro-pkg-dev
mailing list