Skip to content

Commit

Permalink
misc/wmcalendar: Fix some out-of-bounds memory access
Browse files Browse the repository at this point in the history
PR:		227101
Submitted by:	crahman@gmail.com
Approved by:	xride (maintainer)
  • Loading branch information
tobik authored and tobik committed Jan 17, 2019
1 parent f00aa0d commit 0c85d49
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion misc/wmcalendar/Makefile
Expand Up @@ -3,7 +3,7 @@

PORTNAME= wmcalendar
PORTVERSION= 0.5.2
PORTREVISION= 17
PORTREVISION= 18
CATEGORIES= misc windowmaker
MASTER_SITES= SF

Expand Down
11 changes: 11 additions & 0 deletions 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)

0 comments on commit 0c85d49

Please sign in to comment.