Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc/wmcalendar: Fix some out-of-bounds memory access
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
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |