mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
sqlite: patch CVE-2022-35737
This commit is contained in:
15
pkgs/development/libraries/sqlite/CVE-2022-35737.patch
Normal file
15
pkgs/development/libraries/sqlite/CVE-2022-35737.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff --git a/sqlite3.c b/sqlite3.c
|
||||
index eb8d7d5..3918a09 100644
|
||||
--- a/sqlite3.c
|
||||
+++ b/sqlite3.c
|
||||
@@ -30231,8 +30231,8 @@ SQLITE_API void sqlite3_str_vappendf(
|
||||
case etSQLESCAPE: /* %q: Escape ' characters */
|
||||
case etSQLESCAPE2: /* %Q: Escape ' and enclose in '...' */
|
||||
case etSQLESCAPE3: { /* %w: Escape " characters */
|
||||
- int i, j, k, n, isnull;
|
||||
- int needQuote;
|
||||
+ i64 i, j, k, n;
|
||||
+ int needQuote, isnull;
|
||||
char ch;
|
||||
char q = ((xtype==etSQLESCAPE3)?'"':'\''); /* Quote character */
|
||||
char *escarg;
|
||||
@@ -21,6 +21,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-WvB96YK6ZY/ZGgMXDJRfmclx9pVbx53zJmVENz45hpw=";
|
||||
};
|
||||
|
||||
patches = [ ./CVE-2022-35737.patch ];
|
||||
|
||||
outputs = [ "bin" "dev" "out" ];
|
||||
separateDebugInfo = stdenv.isLinux;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user