| Summary: | crash with SIGSEGV on x86_64 and maybe other non-IA32 architectures | ||
|---|---|---|---|
| Product: | [Applications] korganizer | Reporter: | Michael Buchau <mike> |
| Component: | general | Assignee: | Cornelius Schumacher <schumacher> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | crash | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Michael Buchau
2004-08-22 20:42:01 UTC
The function Holidays::getHoliday() doesn't check if it's called with a null date. The following patch fixed it:
--- kdepim-3.3.0/korganizer/plugins/holidays/holidays.cpp.orig 2004-08-05 21:26:57.000000000 +0200
+++ kdepim-3.3.0/korganizer/plugins/holidays/holidays.cpp 2004-08-22 20:12:25.000000000 +0200
@@ -91,7 +91,7 @@
//static int lastYear = 0;
int lastYear = 0;
- if (mHolidayFile.isEmpty()) return QString::null;
+ if (mHolidayFile.isEmpty() || qd.isNull()) return QString::null;
//if ((lastYear == 0) || (qd.year() != lastYear)) {
if ((yearLast == 0) || (qd.year() != yearLast)) {
|