[Pkg-wmaker-commits] [wmix] 33/44: Fix a buffer overflow (how did this ever work?)
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Fri Sep 29 10:40:14 UTC 2017
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch upstream
in repository wmix.
commit a374c6db22345c9790382492de7de3607520f4e6
Author: Johannes Holmberg <johannes at update.uu.se>
Date: Wed Sep 16 21:19:40 2015 -0400
Fix a buffer overflow (how did this ever work?)
---
misc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/misc.c b/misc.c
index 9120bd9..f26170e 100644
--- a/misc.c
+++ b/misc.c
@@ -42,7 +42,6 @@ typedef struct {
} MRegion;
MRegion mr[16];
-
/* Converts separate left and right channel volumes (each in [0, 1]) to
* volume and balance values. (Volume is in [0, 1], balance is in [-1, 1])
*/
@@ -119,7 +118,7 @@ void create_pid_file(void)
if (home == NULL)
return;
- pid = calloc(1, strlen(home) + 10);
+ pid = malloc(strlen(home) + 11);
sprintf(pid, "%s/.wmix.pid", home);
fp = fopen(pid, "w");
if (fp) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmix.git
More information about the Pkg-wmaker-commits
mailing list