diff options
| author | Sam James <sam@gentoo.org> | 2024-12-27 17:13:33 +0000 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2024-12-27 17:13:47 +0000 |
| commit | d18d1ddf245ddbff4ab199dd1c197ca14a49641b (patch) | |
| tree | 7bb9ae59442e939ec2020a05711c021dce59543c /dev-db/sqlite/files/sqlite-3.47.0-allocator-mismatch.patch | |
| parent | 6de7065a2031f5444bf9b6227293cfcd9ffca2cc (diff) | |
| download | gentoo-d18d1ddf245ddbff4ab199dd1c197ca14a49641b.tar.gz gentoo-d18d1ddf245ddbff4ab199dd1c197ca14a49641b.tar.bz2 gentoo-d18d1ddf245ddbff4ab199dd1c197ca14a49641b.zip | |
dev-db/sqlite: drop 3.47.0-r1, 3.47.1
Closes: https://bugs.gentoo.org/945870
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/sqlite/files/sqlite-3.47.0-allocator-mismatch.patch')
| -rw-r--r-- | dev-db/sqlite/files/sqlite-3.47.0-allocator-mismatch.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/dev-db/sqlite/files/sqlite-3.47.0-allocator-mismatch.patch b/dev-db/sqlite/files/sqlite-3.47.0-allocator-mismatch.patch deleted file mode 100644 index 35ea63a28e6a..000000000000 --- a/dev-db/sqlite/files/sqlite-3.47.0-allocator-mismatch.patch +++ /dev/null @@ -1,37 +0,0 @@ -https://github.com/sqlite/sqlite/commit/76b77c63f730aa163d82d082c0e1bf648cc4c567 - -From 76b77c63f730aa163d82d082c0e1bf648cc4c567 Mon Sep 17 00:00:00 2001 -From: stephan <stephan@noemail.net> -Date: Mon, 4 Nov 2024 13:59:58 +0000 -Subject: [PATCH] Fix two mismatched uses of malloc() and sqlite3_free() in - sqlite3_stdio.c, as reported in [forum:7dd7c70038 | forum post 7dd7c70038]. - -FossilOrigin-Name: 5238959d05bbf3c12f488a55e52f3e9733138993d0365255184dffeb2bf36c03 ---- - ext/misc/sqlite3_stdio.c | 4 ++-- - manifest | 13 +++++++------ - manifest.uuid | 2 +- - 3 files changed, 10 insertions(+), 9 deletions(-) - -diff --git a/ext/misc/sqlite3_stdio.c b/ext/misc/sqlite3_stdio.c -index 5bb26084c2..ba37e4be30 100644 ---- a/ext/misc/sqlite3_stdio.c -+++ b/ext/misc/sqlite3_stdio.c -@@ -146,7 +146,7 @@ char *sqlite3_fgets(char *buf, int sz, FILE *in){ - ** that into UTF-8. Otherwise, non-ASCII characters all get translated - ** into '?'. - */ -- wchar_t *b1 = malloc( sz*sizeof(wchar_t) ); -+ wchar_t *b1 = sqlite3_malloc( sz*sizeof(wchar_t) ); - if( b1==0 ) return 0; - _setmode(_fileno(in), IsConsole(in) ? _O_WTEXT : _O_U8TEXT); - if( fgetws(b1, sz/4, in)==0 ){ -@@ -212,7 +212,7 @@ int sqlite3_fputs(const char *z, FILE *out){ - ** use O_U8TEXT for everything in text mode. - */ - int sz = (int)strlen(z); -- wchar_t *b1 = malloc( (sz+1)*sizeof(wchar_t) ); -+ wchar_t *b1 = sqlite3_malloc( (sz+1)*sizeof(wchar_t) ); - if( b1==0 ) return 0; - sz = MultiByteToWideChar(CP_UTF8, 0, z, sz, b1, sz); - b1[sz] = 0; |
