summaryrefslogtreecommitdiff
path: root/src/libical
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '3.0'HEADmasterAllen Winter2023-03-242-5/+17
|\
| * libical-glib: Add get_zone_directory3.0Jan Tojnar2023-03-242-5/+17
| | | | | | | | This will be useful for evolution-data-server to use the same zone directory as libical.
* | Typos a/anДилян Палаузов2022-12-107-8/+8
| |
* | CMAKE option LIBICAL_SYNC_MODE_THREADLOCAL: Allow compiling all global ↵Markus Minichmayr2022-11-227-24/+24
| | | | | | | | variables with thread-local storage, thus avoiding the need for synchronization.
* | Mark mutable global variables as ICAL_GLOBAL_VAR, so we can specify storage ↵Markus Minichmayr2022-11-228-31/+31
| | | | | | | | modifiers (i.e. thread_local) if necessary.
* | Mark read-only static variables as const.Markus Minichmayr2022-11-225-8/+8
| |
* | various - fix strict-prototype warningsAllen Winter2022-11-201-4/+2
| |
* | Merge branch '3.0'Allen Winter2022-11-135-9/+7
|\ \ | |/
| * misc: Update sources to more modern CMilan Crha2022-11-135-9/+7
| | | | | | | | | | | | | | | | | | | | The code fails to build when having enabled (gcc) warnings: -Werror=implicit -Werror=implicit-function-declaration -Werror=implicit-int -Werror=int-conversion -Werror=old-style-definition -Werror=strict-prototypes
* | ical_bt(): use free() to free memory, not the libical wrapperSergei Trofimovich2022-11-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can't use local free() as buffer was not allocated by local malloc(): backtrace_symbols() is a glibc function. Noticed when was debugging unrelated test failure under `-fsanitize=address`: ==6354==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xf0401578 at pc 0x080765af bp 0xffff5168 sp 0xffff515c READ of size 4 at 0xf0401578 thread T0 #0 0x80765ae in test_free src/test/test-malloc.c:136 #1 0xf729d0e4 in ical_bt src/libical/icalerror.c:272 #2 0xf729d376 in icalerror_set_errno src/libical/icalerror.c:117 #3 0xf72cde81 in icaltimezone_parse_zone_tab src/libical/icaltimezone.c:1692 #4 0xf72d69f4 in icaltimezone_init_builtin_timezones src/libical/icaltimezone.c:1554 #5 0xf72d69f4 in icaltimezone_get_utc_timezone src/libical/icaltimezone.c:1537 #6 0xf72c46d8 in icaltime_from_string src/libical/icaltime.c:359 #7 0xf72bed2d in icalrecurrencetype_from_string src/libical/icalrecur.c:714 #8 0xf72e44e0 in icalvalue_new_from_string_with_error src/libical/icalvalue.c:632 #9 0xf72a3a9e in icalparser_add_line src/libical/icalparser.c:1157 #10 0xf72a59ef in icalparser_parse src/libical/icalparser.c:642 #11 0xf72a5bf0 in icalparser_parse_string src/libical/icalparser.c:1359 #12 0xf72932f7 in icalcomponent_new_from_string src/libical/icalcomponent.c:129 #13 0x8063526 in test_tzid_with_utc_time src/test/regression.c:4496 #14 0x8073f02 in test_run src/test/regression-utils.c:236 #15 0x8051c79 in main src/test/regression.c:5467 #16 0xf6cf12f9 in __libc_start_call_main (...glibc-2.35-163/lib/libc.so.6+0x212f9) #17 0xf6cf13d3 in __libc_start_main_alias_1 (...glibc-2.35-163/lib/libc.so.6+0x213d3) #18 0x805202b in _start (build/src/test/regression+0x805202b) 0xf0401578 is located 8 bytes to the left of 1553-byte region [0xf0401580,0xf0401b91) allocated by thread T0 here: #0 0xf7a6906b in malloc (...gcc-13.0.0-lib/lib/libasan.so.8+0xd706b) #1 0xf6dfd1ae in backtrace_symbols (...glibc-2.35-163/lib/libc.so.6+0x12d1ae) #2 0xf7a1d808 in __interceptor_backtrace_symbols.part.0 (...gcc-13.0.0-lib/lib/libasan.so.8+0x8b808) #3 0xf729d01f in ical_bt src/libical/icalerror.c:264 SUMMARY: AddressSanitizer: heap-buffer-overflow src/test/test-malloc.c:136 in test_free
* | Merge branch '3.0'Allen Winter2022-10-251-1/+2
|\ \ | |/
| * Escape comma in x-property TEXT valuesRobert Stepanek2022-10-251-1/+2
| | | | | | | | | | | | | | 453689b7678cbc588c2811efb953d513fc8dc90f changed libical to not escape comma in x-property values. While this is a sane choice for x-property values of unknown kind, it is wrong if the value type of the property is TEXT.
* | Merge branch '3.0'Allen Winter2022-10-241-8/+12
|\ \ | |/
| * disable so versions for Androidheinzchen2022-10-241-8/+12
| |
* | Merge branch '3.0'Allen Winter2022-10-171-6/+2
|\ \ | |/
| * Revert "icalparser.c - add protection against fuzz"Allen Winter2022-10-171-6/+2
| | | | | | | | This reverts commit 2ca167a6077fc1464b1dd3dde93b68c50dc0f720.
* | Merge branch '3.0'Allen Winter2022-10-112-2/+11
|\ \ | |/
| * icaltime_as_timet: Support dates staring with year 1902 also for 32-bit ↵Markus Minichmayr2022-10-112-2/+11
| | | | | | | | time_t. Add a range guard for years from 1902 to 10000 also for 64-bit time_t.
| * fix trailing-whitespace issuesAllen Winter2022-10-101-3/+3
| |
* | Merge branch '3.0'Allen Winter2022-10-101-3/+1
|\ \ | |/
| * Revert "src/libical/icalparser.c - fix a fuzz issue for integer overflow"Allen Winter2022-10-101-3/+1
| | | | | | | | This reverts commit ca3e2ad983771b90da259994b7a6d7de1fd1abdc.
* | Merge branch '3.0'Allen Winter2022-10-071-1/+1
|\ \ | |/
| * fix problem found with gcc fortify buildsAllen Winter2022-10-071-1/+1
| | | | | | | | fixes: #603
* | Merge branch '3.0'Allen Winter2022-10-068-15/+13
|\ \ | |/
| * codespelling fixesAllen Winter2022-10-053-4/+4
| |
| * Ensure all vanew_foo() calls finish with (void*)0 (not 0)Allen Winter2022-10-055-8/+10
| |
| * icalcomponent_vanew - document passing NULL as final argumentissue585Allen Winter2022-10-052-0/+4
| | | | | | | | fixes: #585
| * ensure compiler warning checks for varargs, where available.Allen Winter2022-10-052-6/+0
| | | | | | | | | | -Wvarargs - warn upon questionable usage of the macros used to handle variable arguments like "va_start".
* | Merge branch '3.0'Allen Winter2022-10-032-2/+2
|\ \ | |/
| * suppress some coverity issuesAllen Winter2022-10-031-8/+17
| | | | | | | | supress coverity issues that we can't fix
| * fix coverity warnings - mostly related to YEAR2038 issuesAllen Winter2022-10-012-3/+3
| | | | | | | | fixed by casting.
* | Merge branch '3.0'Allen Winter2022-10-011-1/+3
|\ \ | |/
| * src/libical/icalparser.c - fix a fuzz issue for integer overflowAllen Winter2022-10-011-1/+3
| |
* | Merge branch '3.0'Allen Winter2022-09-291-2/+6
|\ \ | |/
| * icalparser.c - add protection against fuzzAllen Winter2022-09-291-2/+6
| |
* | Merge branch '3.0'Allen Winter2022-09-242-2/+10
|\ \ | |/
| * Fix icaltime_as_timet to support dates after year 2100.Markus Minichmayr2022-09-242-2/+10
| |
* | fix spelling - found with newer codespell v2.2.1Allen Winter2022-09-242-3/+3
| |
* | Merge branch '3.0'Allen Winter2022-09-242-3/+4
|\ \ | |/
| * Fixes to x-property comma handling and escapingKent Sutherland2022-09-242-3/+4
| | | | | | | | | | | | | | | | | | | | | | - Don't allow x-properties to be split into multiple values since RFC 5545 says that only explicitly documented properties should be split - Don't escape text in x-property values since RFC 5545 says that the value should be *VALUE-CHAR rather than *SAFE-CHAR These changes allow Apple's x-properties (such as X-CALENDARSERVER-ATTENDEE-COMMENT and X-APPLE-TRAVEL-START) to be round-tripped safely.
* | Fix Stack-buffer-overflow in simple_str_to_doublestrAllen Winter2022-06-121-6/+6
| |
* | src/libical/qsort_gen.h - minor fix for doxygen warningAllen Winter2022-06-111-1/+0
| |
* | Internally represent GEO properties as textAllen Winter2022-06-113-25/+25
| | | | | | | | | | | | This allows arbitrary precision for the GEO values fixes: #531
* | Merge branch '3.0'Allen Winter2022-06-0912-184/+184
|\ \ | |/
| * improve doxgen documentation. fix doxygen warningsAllen Winter2022-06-0912-184/+184
| |
* | src/libical/icaltz-util.h - hide icaltzutil_fetch_timezoneAllen Winter2022-06-071-1/+3
| | | | | | | | | | | | | | icaltzutil_fetch_timezone should never have been an exported symbol -- it is intended for library-use only fixes: #466
* | buildsystem - full cmake-lint coverageAllen Winter2022-06-071-0/+9
| |
* | REUSE complianceAllen Winter2022-06-0673-769/+158
| | | | | | | | fixes: #489
* | various - a few post-merge white space tweaksAllen Winter2022-06-033-3/+3
| |
* | Introduce `USE_64BIT_ICALTIME_T` CMake option to allow redirecting ↵Markus Minichmayr2022-06-032-2/+2
| | | | | | | | icaltime_t to 64-bit types.