-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: Fix valgrind error * Function pointer safety * Add patch * Build-ignore
- Loading branch information
Showing
5 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,4 @@ a.out.dSYM | |
^\.gitpod\.yml$ | ||
^src/CMakeLists\.txt$ | ||
^\.aviator/config\.yml$ | ||
^patch$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 3a9012f07d9f7da290809d89549b663a75fd4e6b Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Kirill=20M=C3=BCller?= <[email protected]> | ||
Date: Sat, 30 Nov 2024 20:04:14 +0100 | ||
Subject: [PATCH] Function pointer safety | ||
|
||
--- | ||
src/vendor/extensions/regexp.c | 3 ++- | ||
1 file changed, 2 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/src/vendor/extensions/regexp.c b/src/vendor/extensions/regexp.c | ||
index 18266493..340357ea 100644 | ||
--- a/src/vendor/extensions/regexp.c | ||
+++ b/src/vendor/extensions/regexp.c | ||
@@ -656,7 +656,8 @@ static const char *re_subcompile_string(ReCompiled *p){ | ||
** regular expression. Applications should invoke this routine once | ||
** for every call to re_compile() to avoid memory leaks. | ||
*/ | ||
-static void re_free(ReCompiled *pRe){ | ||
+static void re_free(void *pRe_){ | ||
+ ReCompiled *pRe = (ReCompiled*)pRe_; | ||
if( pRe ){ | ||
sqlite3_free(pRe->aOp); | ||
sqlite3_free(pRe->aArg); | ||
-- | ||
2.43.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters