summaryrefslogtreecommitdiff
path: root/dev-db/libdbi-drivers/files/libdbi-drivers-0.9.0-fortify-source-sqlite.patch
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-06-12 02:57:18 +0100
committerSam James <sam@gentoo.org>2024-06-12 02:57:18 +0100
commit1c52fc05c6b46b242e64eb746af429892b986d0a (patch)
tree47b405e16ea03332d0c9423aa7773172c2f56ca3 /dev-db/libdbi-drivers/files/libdbi-drivers-0.9.0-fortify-source-sqlite.patch
parentdd6598ab5a4c9812a142271b9414e74307b56380 (diff)
downloadgentoo-1c52fc05c6b46b242e64eb746af429892b986d0a.tar.gz
gentoo-1c52fc05c6b46b242e64eb746af429892b986d0a.tar.bz2
gentoo-1c52fc05c6b46b242e64eb746af429892b986d0a.zip
dev-db/libdbi-drivers: fix memory corruption issues w/ sqlite
Backport some memory corruption fixes for sqlite3. Note that I haven't fixed bug #920440 - I have essentially no idea about this package and I'd really prefer someone investigate what it's even trying to do there. Bug: https://bugs.gentoo.org/920440 Closes: https://bugs.gentoo.org/920460 Closes: https://bugs.gentoo.org/933427 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/libdbi-drivers/files/libdbi-drivers-0.9.0-fortify-source-sqlite.patch')
-rw-r--r--dev-db/libdbi-drivers/files/libdbi-drivers-0.9.0-fortify-source-sqlite.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-db/libdbi-drivers/files/libdbi-drivers-0.9.0-fortify-source-sqlite.patch b/dev-db/libdbi-drivers/files/libdbi-drivers-0.9.0-fortify-source-sqlite.patch
new file mode 100644
index 000000000000..9624a8c039b6
--- /dev/null
+++ b/dev-db/libdbi-drivers/files/libdbi-drivers-0.9.0-fortify-source-sqlite.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/933427
+https://sourceforge.net/p/libdbi-drivers/libdbi-drivers/ci/24f48b86c8988ee3aaebc5f303d71e9d789f77b6/
+--- a/drivers/sqlite3/dbd_sqlite3.c
++++ b/drivers/sqlite3/dbd_sqlite3.c
+@@ -1451,7 +1451,7 @@ static int getTables(char** tables, int
+ break;
+ }
+
+- word_lower[item-start+1];
++ char word_lower[item-start+1];
+ strncpy(word_lower,start,item-start);
+ word_lower[item-start] = '\0';
+ int i = 0;