Commit Graph

75 Commits

Author SHA1 Message Date
Vsevolod Stakhov
b716e0fd65 [Minor] UCL: Avoid double free 2018-12-13 14:06:13 +00:00
Vsevolod Stakhov
e9cf00459a [Minor] UCL: Don't set cur_file twice 2018-12-13 13:57:55 +00:00
Vsevolod Stakhov
375688cd33 [Minor] UCL: Save filename when setting file vars 2018-12-13 13:44:09 +00:00
Vsevolod Stakhov
896ede0b28 [Fix] Do not allow syntax errors in include files... 2018-11-12 16:37:25 +00:00
Vsevolod Stakhov
557217a588 [Fix] Do not allow to merge an object with an array (or vice versa)
Issue: #2613
2018-11-12 16:36:57 +00:00
Vsevolod Stakhov
8c18e5c97c [Fix] Slashing: backport chunk logic from libucl 2018-10-05 21:17:18 +01:00
Vsevolod Stakhov
5c8208c697 [Minor] Backport fix from libucl 2018-09-30 18:36:51 +01:00
Vsevolod Stakhov
5766eb4b96 [Minor] Slightly refactor set iteration 2018-08-15 15:33:29 +01:00
Vsevolod Stakhov
a281d6a475 [Project] Adopt functions 2018-07-24 19:01:40 +01:00
Vsevolod Stakhov
87162d5b1c [Fix] Fix memory leak in parsing comments 2018-06-15 13:21:06 +01:00
Vsevolod Stakhov
11334a875a [Feature] Support encrypted configs in UCL 2018-05-19 14:51:30 +01:00
Paul Arthur
eea6b5ea92 [Minor] Don't double-escape lua strings in libucl
Strings are escaped during JSON/UCL output, so escaping them while
building the object results in doubly escaped strings.
2018-05-10 16:46:53 +00:00
Paul Arthur
dcfbf5ea8c [Fix] Fix vertical tab handling in libucl
626c7a170f is an incomplete fix and emits
invalid JSON.

The vertical tab has a short escape in C but not JSON, so we should
emit the long escape. (libucl won't choke on \v in UCL input but
it doesn't properly round-trip: 'foo\vbar' will be parsed into
'foovbar'.)

libucl has an option to escape strings during parsing, so I modified
that in a similar fashion to 626c7a17.
2018-05-10 16:44:28 +00:00
Vsevolod Stakhov
a3191bd7b3 [Feture] Allow external preprocessors in libucl 2018-05-05 14:58:37 +01:00
Vsevolod Stakhov
22bac56f25 [Minor] Sync from libucl 2018-05-05 12:41:40 +01:00
Vsevolod Stakhov
0d217fc888 [CritFix] Do not use volatile Lua strings as UCL keys
Issue: #2211
Closes: #2211
2018-05-02 19:05:14 +01:00
Vsevolod Stakhov
da89d96176 [Minor] Unify types 2018-04-24 17:37:45 +01:00
Vsevolod Stakhov
3efef0fad2 [Fix] Propagate key when import implicit array from Lua 2018-04-24 17:35:06 +01:00
Vsevolod Stakhov
38f05a24a5 [CritFix] Fix ucl escape for bad symbols
Issue: #2194
2018-04-23 17:40:30 +01:00
Vsevolod Stakhov
626c7a170f [Fix] Fix processing of '\v' in libucl
Issue: #2045
2018-03-29 13:57:41 +01:00
Vsevolod Stakhov
2a59b34f18 [Minor] Import nan support from libucl 2018-03-29 13:47:38 +01:00
Vsevolod Stakhov
15cc016434 [Feature] Support single quotes in config
Issue: #2080
2018-03-21 15:03:16 +00:00
Vsevolod Stakhov
97a25eff3d [Minor] Sync from libucl 2018-03-21 13:09:52 +00:00
Vsevolod Stakhov
413bb725fc [Feature] Improve allocation policy when interacting with Lua 2018-02-14 14:45:25 +00:00
Vsevolod Stakhov
57747dfc45 [Fix] Fix deletion from hash 2018-02-14 14:45:25 +00:00
Vsevolod Stakhov
9f0a4220de [Feature] Allow to reserve elements in libucl 2018-02-14 14:45:25 +00:00
Vsevolod Stakhov
a755e38112 [Minor] Allow to parse ucl object from rspamd_text 2018-02-14 14:45:25 +00:00
Vsevolod Stakhov
66bebc21e2 [Minor] Treat EPERM specially
Issue: #1996
2018-02-12 20:49:33 +00:00
Vsevolod Stakhov
84c2524e85 [Fix] Deal with nan and inf encoding in json/ucl 2017-11-16 18:56:17 +00:00
Vsevolod Stakhov
900d06b607 [Fix] Fix merging of the implicit arrays 2017-11-06 22:19:22 +00:00
Vsevolod Stakhov
4656af8e69 [Feature] Save real ucl types when exporting to Lua 2017-11-05 10:06:41 +00:00
Vsevolod Stakhov
a0d34edd00 [Fix] Fix couple of warnings 2017-10-27 10:55:20 +01:00
Alexander Moisseev
bb5a9f8e45 [Minor] Massive spelling correction
by a bot https://github.com/ka7/misspell_fixer
2017-06-27 10:44:19 +03:00
Vsevolod Stakhov
c1184c7823 [Fix] Fix objects merging in UCL 2017-06-02 14:42:10 +01:00
Andrew Lewis
74a3a2ede2 [Feature] UCL: register parser variables from Lua 2017-04-18 16:32:42 +02:00
Vsevolod Stakhov
042380a524 [Feature] Add escaped version of lua_ucl import 2017-04-07 11:15:26 +01:00
Vsevolod Stakhov
7c2e2dc6d6 [Fix] Fix freeing of arrays iterators
Issue: #1497
2017-03-08 15:55:26 +00:00
Vsevolod Stakhov
016d429d8d [Minor] Do not set file vars by default in lua ucl 2017-02-19 15:59:09 +00:00
Vsevolod Stakhov
456c2f66f3 [Minor] Add ability to skip setting of file vars in UCL 2017-02-19 15:54:25 +00:00
Vsevolod Stakhov
60a221d3e4 [Fix] Strictly filter bad characters when emittin json 2017-02-08 13:46:57 +00:00
Vsevolod Stakhov
6eec897d8c [Fix] More fixes for iterators cleanup 2017-01-17 19:19:34 +00:00
Vsevolod Stakhov
e5da64bb8b [Fix] Fix memory leak in safe ucl iterators 2017-01-17 19:03:46 +00:00
Vsevolod Stakhov
85e2e9a16e [Minor] Add auto type to the parser method 2017-01-13 09:25:41 +00:00
Vsevolod Stakhov
d9f7a74a1c [Feature] Allow custom parse types in lua ucl 2017-01-13 09:24:19 +00:00
Vsevolod Stakhov
cb846eabcd [Feature] Add ucl_object_iterate_full function 2017-01-10 12:35:55 +00:00
Vsevolod Stakhov
16c8c89c35 [Fix] Fix name of var
MFH: true
2017-01-02 12:39:29 +00:00
Vsevolod Stakhov
f47ab50fd5 [Fix] Plug memory leak
MFH: true
2017-01-01 17:58:33 +00:00
Vsevolod Stakhov
9eca6f6a7b [Fix] Use rspamd hashes in embedded ucl 2016-12-08 13:49:52 +00:00
Vsevolod Stakhov
f789d85b3a [Fix] Backport fix for empty files inclusion from libucl
Issue: #596
Reported by: @assistcontrol
2016-04-18 18:30:08 +01:00
Vsevolod Stakhov
f775891354 Update from the recent libucl 2016-02-22 17:16:14 +00:00