r3/src
Björn Svensson ff1ef2c148 Correcting issue with multiple edges
When `r3_node_find_common_prefix()` searches for the common prefix it
selects the first matched edge, which might not be the best match.

This issue gives memoryleaks which can be viewed in legacy
testcase `check_tree::test_insert_pathl()` by building using:
`CFLAGS="-fno-omit-frame-pointer -fsanitize=leak" cmake ..`
See testcase procedures:
    ret = r3_tree_insert_path(n, "/foo/{id}",  NULL);
    ..
    ret = r3_tree_insert_path(n, "/foo/{idx}/{idy}",  NULL);
    ..
    ret = r3_tree_insert_path(n, "/foo/{idx}/{idh}",  NULL); <-- leaks

Also added a testcase that triggers the problem including a leak for
reproduction on baseline.
2021-09-20 16:55:37 +02:00
..
CMakeLists.txt Remove zmalloc dependency 2018-07-10 08:20:46 -05:00
edge.c Remove zmalloc dependency 2018-07-10 08:20:46 -05:00
gvc.c make: avoided the warning message when do make. 2019-06-21 10:45:54 +08:00
json.c Changed r3 memory model, made few optimizing 2016-03-22 07:23:37 +05:00
list.c Remove zmalloc dependency 2018-07-10 08:20:46 -05:00
Makefile.am Remove zmalloc dependency 2018-07-10 08:20:46 -05:00
match_entry.c Remove zmalloc dependency 2018-07-10 08:20:46 -05:00
memory.c Use the generated config.h instead to enable feature macros 2018-02-21 15:57:25 +01:00
node.c Correcting issue with multiple edges 2021-09-20 16:55:37 +02:00
r3_debug.h Move debug macros to private header files 2015-11-17 21:24:36 +08:00
slug.c make: avoided the warning message when do make. 2019-06-21 10:45:54 +08:00
slug.h Changed r3 memory model, made few optimizing 2016-03-22 07:23:37 +05:00
str.c change: rename OP_EXPECT_NOLINEBREAKS to OP_GREEDY_ANY. 2019-07-20 10:52:56 -04:00
str.h Move private function to src/str.h 2015-11-17 21:13:38 +08:00
token.c Remove zmalloc dependency 2018-07-10 08:20:46 -05:00