mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-10 18:57:45 +00:00
switch_fulldate_cmp
The `switch_split_date` and `switch_split_time` functions only set as many variables as they believe exist values in the input string. Since we didn't have defaults assigned we would read undefined stack memory if the input string didn't contain e.g. an hour. With this commit, we use 1970 if no year is present, January if no month is present, the first day of the month if none is given, and zero for each of a missing hour, minute, or second.
…
…
Description
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unl
Multiple Licenses
268 MiB
Languages
C
64.4%
C++
21.8%
JavaScript
4.7%
Assembly
2%
Makefile
1%
Other
5.4%