1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-06 15:49:35 +03:00

Fix a potential one-byte buffer overread in the command-line shell.

FossilOrigin-Name: e018f4bf1f27f7838342940ad89a12d7f1536e8e
This commit is contained in:
drh
2015-04-15 19:25:25 +00:00
parent f3392e32c7
commit 4b608038b0
3 changed files with 8 additions and 8 deletions

View File

@@ -1944,7 +1944,7 @@ static void resolve_backslashes(char *z){
char c;
while( *z && *z!='\\' ) z++;
for(i=j=0; (c = z[i])!=0; i++, j++){
if( c=='\\' ){
if( c=='\\' && z[i+1]!=0 ){
c = z[++i];
if( c=='n' ){
c = '\n';