diff options
author | larrybr <larrybr@noemail.net> | 2023-03-25 01:29:40 +0000 |
---|---|---|
committer | larrybr <larrybr@noemail.net> | 2023-03-25 01:29:40 +0000 |
commit | 86b67f09e7587249d53fdce35c70ce459bb68ad7 (patch) | |
tree | a9b44b118783d595abfb8049a2e3187c7aed311e /src | |
parent | 62e43b25ddfa12f970a6f818d4942aeac8838f65 (diff) | |
download | sqlite-86b67f09e7587249d53fdce35c70ce459bb68ad7.tar.gz sqlite-86b67f09e7587249d53fdce35c70ce459bb68ad7.zip |
Fix CLI non-handling of OOM reported at [forum:/forumpost/6872514e04|Forum post 6872514e04].
FossilOrigin-Name: 6f6a0fd63b13cb827d6a402de01a701eb5b3f92954032ea80e78ec864861a26c
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shell.c.in b/src/shell.c.in index c61a7432f..594efc456 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -2089,6 +2089,7 @@ static void printSchemaLine(FILE *out, const char *z, const char *zTail){ int i; for(i=0; i<ArraySize(azTerm); i++){ char *zNew = sqlite3_mprintf("%s%s;", zOrig, azTerm[i]); + shell_check_oom(zNew); if( sqlite3_complete(zNew) ){ size_t n = strlen(zNew); zNew[n-1] = 0; |