Skip to content

Commit

Permalink
app-emulation/vice: Fix format-security Bug #560838
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.20.1
  • Loading branch information
atupone committed Oct 19, 2015
1 parent d4637b5 commit 28c4db4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app-emulation/vice/files/vice-2.4.20-format.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- src/main.c.old 2015-10-19 17:25:07.549164652 +0200
+++ src/main.c 2015-10-19 17:25:33.106694706 +0200
@@ -227,7 +227,7 @@
for (i = 0; core_team[i].name; i++) {
n += strlen(core_team[i].name);
if (n > 74) {
- log_message(LOG_DEFAULT, tmp);
+ log_message(LOG_DEFAULT, "%s", tmp);
n = 0; *tmp = 0;
}
strcat(tmp, core_team[i].name);
@@ -235,7 +235,7 @@
strcat(tmp, ", ");
} else {
strcat(tmp, ".");
- log_message(LOG_DEFAULT, tmp);
+ log_message(LOG_DEFAULT, "%s", tmp);
}
}
lib_free(tmp);
1 change: 1 addition & 0 deletions app-emulation/vice/vice-2.4.20.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ DEPEND="${RDEPEND}
src_prepare() {
epatch \
"${FILESDIR}"/${P}-autotools.patch \
"${FILESDIR}"/${P}-format.patch \
"${FILESDIR}"/${P}-xf86extensions.patch
sed -i \
-e 's/building//' \
Expand Down

0 comments on commit 28c4db4

Please sign in to comment.