]> git.pld-linux.org Git - packages/at.git/blame - at-heapcorruption.patch
- unify
[packages/at.git] / at-heapcorruption.patch
CommitLineData
ed6b15d7
AM
1diff -ruN ../at-3.1.8.orig/parsetime.y ./parsetime.y
2--- ../at-3.1.8.orig/parsetime.y Mon Jan 14 17:59:09 2002
3+++ ./parsetime.y Mon Jan 14 18:01:22 2002
4@@ -193,7 +193,6 @@
5 exectm.tm_year -= 1900;
6 }
7
8- free ($1);
9 }
10 else {
11 sscanf($1, "%d", &exectm.tm_hour);
12@@ -369,6 +368,8 @@
13 time_only = 0;
14 if (yyparse() == 0) {
15 exectime = mktime(&exectm);
16+ if (exectime == (time_t)-1)
17+ return 0;
18 if (isgmt) {
19 exectime += timezone;
20 if (daylight) {
21@@ -432,6 +433,8 @@
22 {
23 time_t timeval;
24 timeval = mktime(tm);
25+ if (timeval == (time_t)-1)
26+ timeval = (time_t)0;
27 timeval += numsec;
28 *tm = *localtime(&timeval);
29 }
This page took 0.044748 seconds and 4 git commands to generate.