* [gentoo-commits] gentoo-x86 commit in media-gfx/pornview/files: pornview-0.2.0_pre1-fix-segfault-comment.patch pornview-0.2.0_pre1-fix-array-boundaries.patch
@ 2011-02-25 19:10 Tomas Chvatal (scarabeus)
0 siblings, 0 replies; only message in thread
From: Tomas Chvatal (scarabeus) @ 2011-02-25 19:10 UTC (permalink / raw
To: gentoo-commits
scarabeus 11/02/25 19:10:37
Added: pornview-0.2.0_pre1-fix-segfault-comment.patch
pornview-0.2.0_pre1-fix-array-boundaries.patch
Log:
Fix segmentation fault in comments and qa array boundaries warning.
(Portage version: 2.2.0_alpha25/cvs/Linux x86_64)
Revision Changes Path
1.1 media-gfx/pornview/files/pornview-0.2.0_pre1-fix-segfault-comment.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/pornview/files/pornview-0.2.0_pre1-fix-segfault-comment.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/pornview/files/pornview-0.2.0_pre1-fix-segfault-comment.patch?rev=1.1&content-type=text/plain
Index: pornview-0.2.0_pre1-fix-segfault-comment.patch
===================================================================
diff -urN pornview-0.2.0pre1.old/src/comment.c pornview-0.2.0pre1/src/comment.c
--- pornview-0.2.0pre1.old/src/comment.c 2011-02-25 19:47:10.000000000 +0100
+++ pornview-0.2.0pre1/src/comment.c 2011-02-25 20:05:43.000000000 +0100
@@ -333,15 +333,7 @@
entry->key = g_strdup (template->key);
entry->display_name = g_strdup (template->display_name);
- if (comment->info && template->def_val_fn)
- {
- entry->value = entry->def_val_fn (comment->info, NULL);
- }
- else
- {
- entry->value = NULL;
- }
-
+ entry->value = NULL;
comment->data_list = g_list_append (comment->data_list, entry);
}
}
1.1 media-gfx/pornview/files/pornview-0.2.0_pre1-fix-array-boundaries.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/pornview/files/pornview-0.2.0_pre1-fix-array-boundaries.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/pornview/files/pornview-0.2.0_pre1-fix-array-boundaries.patch?rev=1.1&content-type=text/plain
Index: pornview-0.2.0_pre1-fix-array-boundaries.patch
===================================================================
diff --git a/pornview-0.2.0pre1.old/src/support/file_utils.c b/pornview-0.2.0pre1/src/support/file_utils.c
index fc88617..5eb7184 100644
--- a/pornview-0.2.0pre1.old/src/support/file_utils.c
+++ b/pornview-0.2.0pre1/src/support/file_utils.c
@@ -787,7 +787,7 @@ gid2str (gid_t gid)
gchar *
mode2str (mode_t mode)
{
- gchar permission[11] = { "----------" };
+ gchar permission[12] = { "----------" };
switch (mode & S_IFMT)
{
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-25 19:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-25 19:10 [gentoo-commits] gentoo-x86 commit in media-gfx/pornview/files: pornview-0.2.0_pre1-fix-segfault-comment.patch pornview-0.2.0_pre1-fix-array-boundaries.patch Tomas Chvatal (scarabeus)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox