From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-editors/dav/files/dav-0.8.5-asneeded.patch | 12 +++++++ .../files/dav-0.8.5-davrc-buffer-overflow.patch | 11 ++++++ .../dav/files/fix-Wformat-security-warnings.patch | 39 ++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 app-editors/dav/files/dav-0.8.5-asneeded.patch create mode 100644 app-editors/dav/files/dav-0.8.5-davrc-buffer-overflow.patch create mode 100644 app-editors/dav/files/fix-Wformat-security-warnings.patch (limited to 'app-editors/dav/files') diff --git a/app-editors/dav/files/dav-0.8.5-asneeded.patch b/app-editors/dav/files/dav-0.8.5-asneeded.patch new file mode 100644 index 000000000000..75a43c67f43d --- /dev/null +++ b/app-editors/dav/files/dav-0.8.5-asneeded.patch @@ -0,0 +1,12 @@ +diff -u -r a/Makefile b/Makefile +--- a/Makefile 2004-02-22 02:04:07.000000000 +0100 ++++ b/Makefile 2008-12-30 19:31:19.000000000 +0100 +@@ -12,7 +12,7 @@ + LDFLAGS=-lncurses -O3 -Wall + + dav: $(OBJECTS) +- $(CC) $(LDFLAGS) $(OBJECTS) -o dav ++ $(CC) $(OBJECTS) $(LDFLAGS) -o dav + + install: + mkdir -p $(DESTDIR)/usr/bin diff --git a/app-editors/dav/files/dav-0.8.5-davrc-buffer-overflow.patch b/app-editors/dav/files/dav-0.8.5-davrc-buffer-overflow.patch new file mode 100644 index 000000000000..a32e78ebc818 --- /dev/null +++ b/app-editors/dav/files/dav-0.8.5-davrc-buffer-overflow.patch @@ -0,0 +1,11 @@ +--- dav-0.8.5.orig/main.c 2011-01-29 14:16:53.537725568 -0500 ++++ dav-0.8.5/main.c 2011-01-29 14:20:45.139125094 -0500 +@@ -327,7 +327,7 @@ + void loadSettings() + { + int l; +- char s[80]; ++ char s[200]; + char home[80]; + char *r; + char *c; diff --git a/app-editors/dav/files/fix-Wformat-security-warnings.patch b/app-editors/dav/files/fix-Wformat-security-warnings.patch new file mode 100644 index 000000000000..fe1733360551 --- /dev/null +++ b/app-editors/dav/files/fix-Wformat-security-warnings.patch @@ -0,0 +1,39 @@ +From 8e57c21b3b707c2a81695384688c46faa1d51da8 Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky +Date: Wed, 10 Aug 2016 15:52:30 -0400 +Subject: [PATCH 1/1] fileIO.c: add format strings to sprintf calls. + +Two calls to sprintf() in fileIO.c were missing the trivial format +string "%s". This caused warnings with -Wformat-security, and build +failures with -Werror=format-security. Those two calls are now fixed. + +Gentoo-Bug: 521016 +--- + fileIO.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/fileIO.c b/fileIO.c +index a6c535a..1916a46 100644 +--- a/fileIO.c ++++ b/fileIO.c +@@ -92,7 +92,7 @@ char *doSave(char *filename) { + n++; + choices = realloc(choices, n*sizeof(char *)); + choices[n-1] = malloc(256); +- sprintf(choices[n-1], d->d_name); ++ sprintf(choices[n-1], "%s", d->d_name); + } + closedir(dir); + +@@ -178,7 +178,7 @@ void load(char *filename) + n++; + choices = realloc(choices, n*sizeof(char *)); + choices[n-1] = malloc(256); +- sprintf(choices[n-1], d->d_name); ++ sprintf(choices[n-1], "%s", d->d_name); + } + closedir(dir); + +-- +2.7.3 + -- cgit v1.2.3