aports/main/sqlite/CVE-2025-29087.patch
2025-04-15 16:24:11 +00:00

18 lines
397 B
Diff

Patch-Source: https://sqlite.org/src/info/498e3f1cf57f164f
--- a/sqlite3.c
+++ b/sqlite3.c
@@ -130952,11 +130952,11 @@ static void concatFuncCore(
int i;
char *z;
for(i=0; i<argc; i++){
n += sqlite3_value_bytes(argv[i]);
}
- n += (argc-1)*nSep;
+ n += (argc-1)*(i64)nSep;
z = sqlite3_malloc64(n+1);
if( z==0 ){
sqlite3_result_error_nomem(context);
return;
}