pancake
bf29079711
Fix minunit
2025-11-17 20:21:20 +01:00
pancake
5ccf37667f
Fix warning in minunit
2025-11-17 19:53:55 +01:00
pancake
9011eccf77
Disable leak checks and fix heap build
2025-07-14 11:18:22 +02:00
pancake
1a57c418b3
Add strbuf api and use it for cgen
2025-06-13 13:13:39 +02:00
pancake
72ba257a79
Test and fix all 3 memory allocators: libc, custom and mimalloc
2022-11-24 18:03:34 +01:00
pancake
5e5734edb1
Fix mimalloc test, support custom calloc
2022-11-24 18:03:34 +01:00
pancake
78a0fcc6fc
Add mimalloc custom allocator test
2022-11-23 18:49:40 +01:00
pancake
3bc55289a7
Fix meson build and gperf tests
2022-11-23 18:06:17 +01:00
pancake
58790a02c6
Do not compile with debug info by default to avoid messing with cflags
2022-11-23 09:33:53 +01:00
pancake
e4b166e8c3
Use sdb/sdb.h to solve include conflicts and simplify build
2022-11-18 11:19:31 +01:00
pancake
04868f1e4f
Add sdb_itoas and adjust sdb_itoa signature to be in sync
2022-09-18 19:06:16 +02:00
pancake
e976bb64e3
Fix issues ASAN CI, ignore leaks on hardfailing asan to avoid missing issues
...
* make asan vs make leak
2022-09-18 10:28:44 +02:00
pancake
9519de7733
Implement numeric key apis
2022-09-18 10:28:44 +02:00
pancake
62ccf2f69f
Fix sdb_itoa() breaks function signature
2022-09-18 01:15:50 +02:00
pancake
f278cf627a
Initial work on a native python module
2022-08-21 00:50:13 +02:00
pancake
ec2e34a1dc
Cache miss optimizations and dont preincrement in fors
2022-07-02 21:33:50 +02:00
pancake
64a4532d69
Cleaner test/suite/run.sh titles
2022-05-21 21:28:29 +02:00
pancake
ef69b8bcf7
Fix testsuite
2022-05-17 11:42:02 +02:00
pancake
aa6d13a2a3
Remove all calls to eprintf from library apis ( #248 )
...
* fputs(stdout) is still pending to be removed, but this requires breaking API and ABI
2022-02-25 19:04:19 +01:00
pancake
d76a88c0cf
Use stdint types ( #247 )
2022-02-25 16:45:45 +01:00
pancake
b6965582e9
Make sdb compilable as C++ ( #245 )
...
* Make sdb compilable as C++
* Add casts as void* is not typable enough
* Add ls_foreach_cast
* ht_inc.h is now named ht.inc
* Add 'make x' or 'make o' to compile in c++ or in a single shot
* Remove macros from text.c
* Avoid using extern when its not extern
* Add missing license headers
* Add extern "C" in all the include files
* Test C++ builds in the CI
2022-02-23 20:54:25 +01:00
meme
e7d259c23a
Remove TLS and make sdb thread-safe
...
* Nuke sdb_fmt
* Mark goto tables as const
* Mark lookup table as const
* Move nextcas into SdbKv
* Remove global hook (cannot be used without TLS, but we want to avoid
that)
* Fix lock path to not use a static buffer
2022-01-18 09:56:32 +01:00
pancake
b0c7e061ac
Fix asan leaks in tests
2022-01-17 16:16:59 +01:00
pancake
b9c92eac77
Minor indent in test file
2021-06-21 10:40:12 +02:00
pancake
bf04eec221
Remove the extra newline in the query responses
2021-06-21 01:38:39 +02:00
pancake
7894304c05
More memleak fixes
2021-05-30 22:16:24 +02:00
pancake
2396b9a2ba
Fix memleaks reported by asan and enable it in the CI
2021-05-30 09:15:29 +02:00
pancake
f5596a62e7
Racy fix
2021-05-27 23:55:54 +02:00
pancake
c642a1fc7b
Fix -o usage
2021-05-27 22:54:38 +02:00
pancake
86047435d3
Initial support for the -Ct no-gperf cgen backend
2021-05-25 13:50:45 +02:00
pancake
79d1fa3ffa
Optimize ls_sort() fixes https://github.com/radareorg/radare2/issues/18322
2021-05-19 22:44:35 +02:00
pancake
4d4398ba4c
Also test the gperf
2021-05-19 21:35:30 +02:00
pancake
a2de5e301e
Add gperf test
2021-05-13 04:09:55 +02:00
pancake
054f49845b
Use sdb_fmt in a proper way
2020-12-27 11:27:49 +01:00
pancake
2975d79086
Rip windows fixes from Rizin and improve them a bit
2020-12-27 11:27:49 +01:00
pancake
db718d710f
Add test for sdb_ns and sdb_ns_
2020-12-25 05:11:24 +01:00
pancake
0a20b615a2
Add sdb_ns_set test
2020-12-25 05:08:43 +01:00
Florian Märkl
14577b7e3e
Fix OOB write in text parsing ( #226 )
2020-10-31 15:52:02 +01:00
Florian Märkl
ee24c44312
Add plaintext SDB format ( #219 )
2020-10-12 18:41:37 +02:00
Florian Märkl
3d81b4663f
Add Unit Tests to Meson and fix some Warnings ( #217 )
2020-09-28 14:57:27 +02:00
Florian Märkl
55a914fda9
Add sdb out.sdb == in1.sdb.txt in2.sdb.txt ( #215 )
2020-09-19 21:17:35 +02:00
Anisse Astier
a8a98e96f2
Bring merge sort and insertion sort cmp function semantics together ( #212 )
...
Merge sort uses cmp (a, b) < 0 for its first test branch, and insertion
sort cmp (a, b) > 0 ; which means the 0 boundary goes in one case in one
branch, and in the other sort function in the other branch.
We keep the semantics of the insertion sort, it makes it possible to
support compare function that return true/false instead of a distance
between items.
Add a test that was previously failing for merge sort, but working with
insertion sort, although the function is not exposed, it only triggers
at > 43 elements.
The main difference is the test function that sends true/false instead
of a difference between two integers.
2020-08-18 11:56:58 +02:00
Riccardo Schirone
c50566515f
Use _ instead of : because : is invalid on Windows ( #210 )
...
The use of : in file names prevents sdb from being cloned on Windows
2020-07-08 11:25:38 +02:00
Florian Märkl
c3bbac8608
Add sdb_copy() API ( #200 )
2019-10-25 15:28:12 +02:00
Florian Märkl
30a8723229
Add better diffing in (sdb -D) ( #198 )
2019-10-23 11:18:47 +02:00
Paul I
268edee7ef
Add benchmark suites to meson ( #191 )
2019-03-13 23:15:47 +01:00
Riccardo Schirone
9d9e203ae2
Remove test_grow_5 test case because too slow ( #188 )
2019-02-18 11:23:40 +01:00
Riccardo Schirone
fc31557f44
Fix edge case in HT when growing past last precomputed prime number
2019-02-15 21:51:15 +01:00
Riccardo Schirone
5bd279a9f5
Add Ht update_key API
2019-01-15 19:56:31 +01:00
Domen Puncer Kugler
c9af602997
Fix memory leaks in test/unit
2018-11-28 09:42:03 +01:00