Drew DeVault
c09bc5df79
Fix integer overflow bug in Lua bit_tohex
...
Fix for CVE-2024-31449
This patch was provided to us by Valkey, who received it from Redis Ltd.
> An authenticated user may use a specially crafted Lua script to
> trigger a stack buffer overflow in the bit library, which may
> potentially lead to remote code execution.
Fixes: https://codeberg.org/redict/redict/issues/55
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-09-16 09:08:14 +02:00
Drew DeVault
e035e7b763
ACL: Fix parsing issue leading to denail of service
...
Fix for CVE-2024-31227
This patch was provided to us by Valkey, who received it from Redis Ltd.
> An authenticated user with sufficient privileges may create a
> malformed ACL selector which, when accessed, triggers a server panic
> and subsequent denial of service.
Fixes: https://codeberg.org/redict/redict/issues/54
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-09-16 09:07:54 +02:00
Micke Nordin
a4c8110232
REUSE: Add copyright for .forgejo/workflows/run-tests.yaml
2024-09-07 13:40:35 +02:00
Micke Nordin
3815c7f238
Make pidfile section more clear
...
Add information about containers and change the sugested setting to
the thing we propose in the comment.
2024-07-29 11:54:38 +02:00
Micke Nordin
2f1f84165f
Merge pull request 'Add build and test workflow' ( #47 ) from micke-ci into main
...
Reviewed-on: https://codeberg.org/redict/redict/pulls/47
2024-07-04 14:32:34 +00:00
Micke Nordin
97e2f144fb
Add build and test workflow
2024-07-04 16:30:42 +02:00
Anna (navi) Figueiredo Gomes
52c3e46637
deps/hiredict: update to restructured version
...
this allows for redict to use the same include paths for both system and
vendored hiredict, allowing use of system hiredict without patches.
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
2024-04-19 12:44:44 +02:00
Maytham Alsudany
d2e5e96559
Use $(PKG_CONFIG) to call pkgconf rather than invoking directly in finding jemalloc
...
Signed-off-by: Maytham Alsudany <maytha8thedev@gail.com>
2024-04-15 07:48:37 +00:00
Maytham Alsudany
bd55c900ac
Mention USE_SYSTEM_HIREDICT setting in README
...
Signed-off-by: Maytham Alsudany <maytha8thedev@gmail.com>
2024-04-14 11:54:28 +03:00
Maytham Alsudany
ffb9f03106
Add ability to use system hiredict
...
Co-authored-by: Chris Lamb <lamby@debian.org>
Signed-off-by: Maytham Alsudany <maytha8thedev@gmail.com>
2024-04-14 11:54:08 +03:00
Maytham Alsudany
a7654a251b
Use pkgconf to determine system jemalloc's cflags and libs
...
Signed-off-by: Maytham Alsudany <maytha8thedev@gmail.com>
2024-04-14 05:48:07 +03:00
Maytham Alsudany
940b0fab03
Mention USE_SYSTEM_JEMALLOC setting in README
...
Signed-off-by: Maytham Alsudany <maytha8thedev@gmail.com>
2024-04-10 01:11:24 +03:00
Maytham Alsudany
5defea5b98
Add ability to use system jemalloc
...
This time, this shouldn't cause CI tests to fail.
Co-authored-by: Chris Lamb <lamby@debian.org>
Signed-off-by: Maytham Alsudany <maytha8thedev@gmail.com>
2024-04-10 01:10:49 +03:00
Drew DeVault
c68ef593e5
Revert broken jemalloc changes
...
As I suspected this breaks the default build configuration.
This reverts commit 8794d03e2b
.
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-04-03 10:30:50 +02:00
Drew DeVault
654fe4ce00
Update references to redis.io throughout code
...
Now that most of the docs have been migrated over, we can update the references
in the codebase to point to redict.io.
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-04-03 10:26:56 +02:00
Chris Lamb
8794d03e2b
Add ability to use system jemalloc
...
Signed-off-by: Maytham Alsudany <maytha8thedev@gmail.com>
2024-04-02 13:55:02 +00:00
Chris Lamb
5f400152aa
Fix FTBFS on kFreeBSD
...
Signed-off-by: Maytham Alsudany <maytha8thedev@gmail.com>
2024-04-02 13:55:02 +00:00
Drew DeVault
8a0059a229
.builds/matrix.yml: distclean between runs
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-04-02 11:08:59 +02:00
Norm
1502824239
Report redis_version:7.2.4 in INFO command
...
Fixes : #37
Signed-off-by: Norm <normandy@biribiri.dev>
2024-04-01 15:59:39 -04:00
Drew DeVault
aadcf99b72
.builds: add more comprehensive build testing
...
Fixes: https://codeberg.org/redict/redict/issues/7
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-04-01 12:05:36 +02:00
Drew DeVault
466411d783
Hard code redis.REDIS_VERSION to 7.2.4
...
Fixes: https://codeberg.org/redict/redict/issues/37
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-04-01 11:57:54 +02:00
Drew DeVault
3d8a3a9ba0
test/unit/functions.tcl: fix api version test
...
Makes the test pass for versions X.Y.Z and X.Y.Z-rQ
Fixes: https://codeberg.org/redict/redict/issues/34
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-28 11:23:01 +01:00
Drew DeVault
1fb435754f
Makefile: add sample configs
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-28 10:56:12 +01:00
Drew DeVault
f672a49edd
Update SECURITY.md
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-26 14:20:40 +01:00
Drew DeVault
5f780d0bc2
Update CODE_OF_CONDUCT.md
...
Fix formatting issues and update contact email.
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-26 14:13:57 +01:00
Drew DeVault
04556d4e2c
Update README.md
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-26 14:11:57 +01:00
Drew DeVault
a8ae9fdb26
tests/unit/scripting: add redis global test
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-26 12:29:46 +01:00
Drew DeVault
e32c74c826
tests/*: replace redis with redict in Lua usage
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-26 12:12:03 +01:00
Drew DeVault
a91d1148cf
src/modules: s/redis/redict/g
...
Final pass on these
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-26 10:59:57 +01:00
Drew DeVault
d4622e0592
utils/generate-module-api-doc.rb: update for redict.io
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-26 10:50:41 +01:00
Drew DeVault
5d810f809e
utils/*: clean up
...
* Remove deprecated/obsolete tools
* Rewrite Redis references where appropriate
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-26 10:41:22 +01:00
Drew DeVault
bd60b41068
utils/lint.sh: lint reuse compliance
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-25 18:10:28 +01:00
Drew DeVault
52bb49ee48
Merge commit '8b493612ae4b44cdc02f80a458c18155b673d968'
2024-03-25 18:05:01 +01:00
Drew DeVault
8b493612ae
Squashed 'deps/hiredict/' changes from 7bce77ae6..08ac9b200
...
08ac9b200 .reuse: add hiredis pc files
34dd027d8 Makefile: use .pc.in files
cda15c036 shim: add hiredis shim
git-subtree-dir: deps/hiredict
git-subtree-split: 08ac9b200634c09ebb73e4bf4b121911fe186b54
2024-03-25 18:05:00 +01:00
Drew DeVault
5da205387a
utils/lint.sh: add more detailed error message
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-25 17:54:24 +01:00
Drew DeVault
0a2132f33d
Add utils/lint.sh
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-25 17:52:05 +01:00
Maxwell G
053be3dbf6
ci: fix broken yaml syntax
2024-03-25 16:41:53 +00:00
Drew DeVault
62205846c1
.builds: re-enable sentinel tests
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-25 17:31:18 +01:00
Drew DeVault
a609e26c56
tests/support: s/redis/redict/g
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-25 17:31:07 +01:00
Drew DeVault
e23dcf403b
tests/sentinel: update .gitignore
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-25 17:31:07 +01:00
Drew DeVault
04992aead7
Freshen up sds.c from hiredict
...
For ABI compatibility, etc.
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-25 17:31:07 +01:00
Drew DeVault
abd89c3ce2
tests/instances.tcl: fix Redis ref in pause_on_error
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-25 17:31:07 +01:00
Drew DeVault
cdd60793d5
tests/modules: fix remaining redis => redict cases
...
Non-API impacting renames.
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-25 12:45:47 +01:00
Drew DeVault
03d144a452
tests/modules: fix module tests
...
Replaces Redis => Redict API
References: https://codeberg.org/redict/redict/issues/21
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-25 12:42:30 +01:00
Drew DeVault
6a70878bc1
.reuse/dep5: drop hiredict
...
hiredict is REUSE-compatible downstream
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-25 12:25:32 +01:00
Anna (navi) Figueiredo Gomes
4a6558258e
Makefile: add support to DESTDIR
...
Closes : #22
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
2024-03-25 11:24:24 +00:00
GreaseMonkey
9f420764b0
Add missing LGPL-3.0-or-later license text
...
Signed-off-by: GreaseMonkey <thematrixeatsyou+cobederg@gmail.com>
2024-03-25 13:53:26 +13:00
Drew DeVault
a8fdaa56e5
.builds: disable runtest-sentinel
...
See https://codeberg.org/redict/redict/issues/21
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-24 17:05:55 +01:00
Drew DeVault
b8b5e868a3
utils: s/redis/redict/
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-24 15:58:52 +01:00
Drew DeVault
a7c55c25c7
.builds: run cluster, sentinel tests on CI
...
Signed-off-by: Drew DeVault <sir@cmpwn.com>
2024-03-24 15:58:39 +01:00