summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2011-02-25 19:10:37 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2011-02-25 19:10:37 +0000
commit55d688647774dcce86b8e13828010d490907604e (patch)
treee03edbe234426af9ce951a88b62facdbd2fa8985 /media-gfx/pornview/files
parentVersion bump. (diff)
downloadgentoo-2-55d688647774dcce86b8e13828010d490907604e.tar.gz
gentoo-2-55d688647774dcce86b8e13828010d490907604e.tar.bz2
gentoo-2-55d688647774dcce86b8e13828010d490907604e.zip
Fix segmentation fault in comments and qa array boundaries warning.
(Portage version: 2.2.0_alpha25/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/pornview/files')
-rw-r--r--media-gfx/pornview/files/pornview-0.2.0_pre1-fix-array-boundaries.patch13
-rw-r--r--media-gfx/pornview/files/pornview-0.2.0_pre1-fix-segfault-comment.patch20
2 files changed, 33 insertions, 0 deletions
diff --git a/media-gfx/pornview/files/pornview-0.2.0_pre1-fix-array-boundaries.patch b/media-gfx/pornview/files/pornview-0.2.0_pre1-fix-array-boundaries.patch
new file mode 100644
index 000000000000..918a3e2cfaa0
--- /dev/null
+++ b/media-gfx/pornview/files/pornview-0.2.0_pre1-fix-array-boundaries.patch
@@ -0,0 +1,13 @@
+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)
+ {
diff --git a/media-gfx/pornview/files/pornview-0.2.0_pre1-fix-segfault-comment.patch b/media-gfx/pornview/files/pornview-0.2.0_pre1-fix-segfault-comment.patch
new file mode 100644
index 000000000000..d1477e9b08e7
--- /dev/null
+++ b/media-gfx/pornview/files/pornview-0.2.0_pre1-fix-segfault-comment.patch
@@ -0,0 +1,20 @@
+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);
+ }
+ }