Commit Graph

198 Commits

Author SHA1 Message Date
Travis Cross 959e672a94 Fix spelling "Couldnt" -> "Couldn't" 2014-08-22 02:19:45 +00:00
William King bdbefdcc48 CID:1087631 In the unlikely case the sprintf fails, free the memory instead of leak it 2014-05-14 19:56:32 -07:00
Anthony Minessale 287fd66800 FS-6403 --resolve
This commit also reverts 2 previous attempts to fix this very rare race issue spanning back to 2009

62ce853897 Patch from MOC
3a85348cdf FS-2302 mutex added around switch_xml_toxml()

The real problem was switch_xml_toxml_buf() was actually temporarily modifying the xml structure being searialized to make it appaer to be a root structure then serializing it and restoring the pointers.  This caused a non-threadsafe operation when some other thread was scanning the same xml structure.

This patch removes the modification and instead passes a new arg to switch_xml_toxml_r indicating to treat the structure as if it were a root structure.

This bug has been present since the induction of xml into FS.
2014-04-03 20:30:45 +05:00
Anthony Minessale 7151d6acea FS-6402 part 2 2014-04-02 03:21:37 +05:00
Jeff Lenk 69cc7014e4 FS-6355 remove check on delete 2014-03-15 23:09:45 -05:00
Jeff Lenk 586b189166 FS-6355 fix for windows delete file 2014-03-15 18:01:03 -05:00
Brian West f087248cfc FS-6355 - Patch to have .fsxml file be generated atomic to avoid partial reads when using this file to compare to previous versions/etc. 2014-03-13 17:27:36 -05:00
Anthony Minessale 804ef7709d change from sqlite hash to newly added one 2014-03-09 00:37:17 +05:00
Travis Cross 9cf864ba2b Deal with read errors in switch_xml.c
Unlike fread(3), read(3) will return -1 on error.  We were assigning
the result of read to a potentially unsigned variable, and passing the
result down to switch_xml_parse_str() where it would end up
determining how many bytes to malloc(3).
2014-02-28 18:33:31 +00:00
Anthony Minessale 15b8dfa8af FS-6217 --resolve 2014-02-13 06:22:13 +05:00
Ken Rice 6e7d5d0897 update copyright header for 2014 2014-02-12 12:08:56 -06:00
Anthony Minessale 87c5c64c32 FS-6032 2013-12-09 22:14:38 +05:00
Anthony Minessale 726b607667 FS-5841 --resolve 2013-11-22 22:52:59 +05:00
Anthony Minessale 1780e22805 FS-5779 --resolve 2013-09-12 09:27:06 +05:00
Anthony Minessale bd41ecc396 FS-5779 --resolve 2013-09-12 01:29:32 +05:00
Anthony Minessale 32437d0412 FS-5747 move reloadxml event outside of mutex 2013-09-05 04:09:53 +05:00
Anthony Minessale 5b8a1337d6 FS-5734 documentation will need to be updated to request languages instead of phrases 2013-08-28 21:25:35 +05:00
Anthony Minessale f08c3309f6 FS-5621 2013-07-20 14:07:01 -05:00
Anthony Minessale a6bffd38cb FS-5498 2013-07-19 12:03:51 -05:00
Ken Rice 2f48c63107 Revert "FS-5567 --resolve"
pulling this one for a bit...

This reverts commit 518b5a802e.
2013-07-11 12:04:12 -05:00
Ken Rice 518b5a802e FS-5567 --resolve 2013-07-11 11:10:11 -05:00
Ken Rice f30e40a80b --resolve FS-3922 2013-07-04 21:18:20 -05:00
Nathan Neulinger 32adc789f6 make noexpandtab explicit in all vim modelines other than xml files 2013-06-25 11:50:17 -05:00
Raymond Chandler 610718fdff FS-4871: reduce logging a bit 2013-05-23 20:51:25 -04:00
Jeff Lenk 0bf912e821 FS-5389 2013-05-08 11:36:13 -05:00
Jeff Lenk ab7ae9f7cc FS-5389 --resolve 2013-05-08 08:37:10 -05:00
Raymond Chandler a2fcb4191e FS-4871 --resolve 2013-05-07 15:07:04 -04:00
Anthony Minessale bf607b0d91 FS-5319 --resolve 2013-04-17 15:33:27 -05:00
Jeff Lenk 16289ce9a4 FS-5166 --resolve exec for windows 2013-03-13 22:24:25 -05:00
Brian West f4e55fb187 fix regression from 6b6c83a718 2012-11-13 12:48:59 -06:00
Anthony Minessale a4a44fb140 FS-4741 parse timezone variable and adjust time for time based routing 2012-10-31 10:43:59 -05:00
Anthony Minessale 6d7e2799c3 FS-4741 I think I see the issue, try this 2012-10-31 11:41:48 -04:00
Anthony Minessale 01dde19cbd FS-4741 --resolve use paypal@freeswitch.org 2012-10-23 18:19:32 -04:00
Anthony Minessale 30a13ca0c6 FS-4728 --resolve got it, related to multpile bindings 2012-10-17 12:29:50 -04:00
Jeff Lenk 6b6c83a718 FS-2746 --resolve large xmlrpc update thanks garmt 2012-10-13 11:37:25 -05:00
Anthony Minessale 52eff9451c wrap fork so we can drop priority in child processes 2012-10-01 13:38:45 -05:00
Jeff Lenk b39232c7ff trivial compiler warning 2012-09-18 22:10:47 -05:00
Anthony Minessale c5204c2128 FS-4614 --resolve update to dynamic line buffer and use internal buffering to boot for file I/O on preprocessing XML 2012-09-18 15:39:28 -05:00
Jeff Lenk e22f42334d FS-4099 --resolve switch windows to use posix delimiter (/) for base paths. This will correct numerous problems with escaped chars. This change only effects windows builds. Please test. 2012-09-16 14:15:49 -05:00
Ken Rice c5554eb939 Copyright date update. 2012-04-18 11:52:02 -05:00
root 277c1141c4 a few perf tweaks 2012-04-04 17:20:35 -05:00
Anthony Minessale 0f6a2bf863 the threaded one seems to not work using only fork 2011-12-20 13:49:15 -06:00
Anthony Minessale d7a37e9754 allow system API command to capture output from the executed command 2011-12-20 12:34:21 -06:00
Marc Olivier Chouinard 442f4d2522 FS-3766 --resolve 2011-12-16 07:35:05 -05:00
Marc Olivier Chouinard 4cd616cc1d FS-2081 --resolve 2011-12-15 23:36:20 -05:00
Anthony Minessale 65a756643a add tod_tz_offset variable to set to the integer value of the tz offset or the tz-offset tag on a per-tag basis 2011-11-07 14:31:36 -06:00
Anthony Minessale 7333d46d5b add new chatplan concept and mod_sms. Apps for chat messages: copy new base freeswitch.xml and chatplan dir if you are upgrading on existing config base 2011-09-21 14:31:18 -05:00
Jeff Lenk 3aaa6209b8 FS-3380 --resolve Bad calling conventions for Windows 2011-06-29 11:30:31 -05:00
Anthony Minessale 07a715928b FS-2218 --resolve 2011-06-28 08:05:12 -05:00
Jeff Lenk 5923f71a84 more code analysis mostly trivial except string formating changes 2011-06-01 22:36:19 -05:00