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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user