mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-13 00:10:04 +03:00
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>
14 lines
451 B
Diff
14 lines
451 B
Diff
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;
|