summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-01-17 14:09:26 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2019-01-17 14:09:26 +0000
commita03dcb701c5e55800766508f7d2ece6bd9e4a420 (patch)
tree8e95d9a09ea2913c0963ab36b23a9906f4ca7cb5 /misc
parentUnbreak the build against modern compilers caused by some sloppy C++ coding. (diff)
misc/wmcalendar: Fix some out-of-bounds memory access
PR: 227101 Submitted by: crahman@gmail.com Approved by: xride (maintainer)
Notes
Notes: svn path=/head/; revision=490563
Diffstat (limited to 'misc')
-rw-r--r--misc/wmcalendar/Makefile2
-rw-r--r--misc/wmcalendar/files/patch-wmCalendar.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/misc/wmcalendar/Makefile b/misc/wmcalendar/Makefile
index 92e35a7e1487..c707637fa1ff 100644
--- a/misc/wmcalendar/Makefile
+++ b/misc/wmcalendar/Makefile
@@ -3,7 +3,7 @@
PORTNAME= wmcalendar
PORTVERSION= 0.5.2
-PORTREVISION= 17
+PORTREVISION= 18
CATEGORIES= misc windowmaker
MASTER_SITES= SF
diff --git a/misc/wmcalendar/files/patch-wmCalendar.c b/misc/wmcalendar/files/patch-wmCalendar.c
new file mode 100644
index 000000000000..a8b8a6e18962
--- /dev/null
+++ b/misc/wmcalendar/files/patch-wmCalendar.c
@@ -0,0 +1,11 @@
+--- wmCalendar.c.orig 2006-09-15 09:53:37 UTC
++++ wmCalendar.c
+@@ -71,7 +71,7 @@ void initValues(){
+ for(i = 0; i < 12; ++i)
+ for( j = 0; j < 6; ++j)
+ xdMonth[j][i] = xeMonth[j][i] - xsMonth[j][i] + 1;
+- for(i = 0; i < 12; ++i)
++ for(i = 0; i < 10; ++i)
+ for( j = 0; j < 2; ++j)
+ xdYear[j][i] = xeYear[j][i] - xsYear[j][i] + 1;
+ for(i = 0; i < MAXBUTTON; ++i)