From: | "Tomas Chvatal (scarabeus)" <scarabeus@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [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 |
Date: | Fri, 25 Feb 2011 19:10:49 |
Message-Id: | 20110225191037.52BAA20054@flycatcher.gentoo.org |
1 | scarabeus 11/02/25 19:10:37 |
2 | |
3 | Added: pornview-0.2.0_pre1-fix-segfault-comment.patch |
4 | pornview-0.2.0_pre1-fix-array-boundaries.patch |
5 | Log: |
6 | Fix segmentation fault in comments and qa array boundaries warning. |
7 | |
8 | (Portage version: 2.2.0_alpha25/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.1 media-gfx/pornview/files/pornview-0.2.0_pre1-fix-segfault-comment.patch |
12 | |
13 | 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 |
14 | 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 |
15 | |
16 | Index: pornview-0.2.0_pre1-fix-segfault-comment.patch |
17 | =================================================================== |
18 | diff -urN pornview-0.2.0pre1.old/src/comment.c pornview-0.2.0pre1/src/comment.c |
19 | --- pornview-0.2.0pre1.old/src/comment.c 2011-02-25 19:47:10.000000000 +0100 |
20 | +++ pornview-0.2.0pre1/src/comment.c 2011-02-25 20:05:43.000000000 +0100 |
21 | @@ -333,15 +333,7 @@ |
22 | entry->key = g_strdup (template->key); |
23 | entry->display_name = g_strdup (template->display_name); |
24 | |
25 | - if (comment->info && template->def_val_fn) |
26 | - { |
27 | - entry->value = entry->def_val_fn (comment->info, NULL); |
28 | - } |
29 | - else |
30 | - { |
31 | - entry->value = NULL; |
32 | - } |
33 | - |
34 | + entry->value = NULL; |
35 | comment->data_list = g_list_append (comment->data_list, entry); |
36 | } |
37 | } |
38 | |
39 | |
40 | |
41 | 1.1 media-gfx/pornview/files/pornview-0.2.0_pre1-fix-array-boundaries.patch |
42 | |
43 | 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 |
44 | 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 |
45 | |
46 | Index: pornview-0.2.0_pre1-fix-array-boundaries.patch |
47 | =================================================================== |
48 | diff --git a/pornview-0.2.0pre1.old/src/support/file_utils.c b/pornview-0.2.0pre1/src/support/file_utils.c |
49 | index fc88617..5eb7184 100644 |
50 | --- a/pornview-0.2.0pre1.old/src/support/file_utils.c |
51 | +++ b/pornview-0.2.0pre1/src/support/file_utils.c |
52 | @@ -787,7 +787,7 @@ gid2str (gid_t gid) |
53 | gchar * |
54 | mode2str (mode_t mode) |
55 | { |
56 | - gchar permission[11] = { "----------" }; |
57 | + gchar permission[12] = { "----------" }; |
58 | |
59 | switch (mode & S_IFMT) |
60 | { |