Fossil

Check-in [a12b9c45]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Cherrypick SQLite ac15455abc: In the command-line shell, defend against a NULL-pointer dereference in the case where sqlite3_column_name() returns NULL (as might happen following an OOM error)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | branch-1.28
Files: files | file ages | folders
SHA1:a12b9c453396dce8028aa371660da5ed62505f8d
User & Date: jan.nijtmans 2014-01-14 08:29:47
Context
2014-01-14
08:36
Cherrypick [354288db9c]: Fix build with older MinGW. See: http://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg14377.html check-in: 26362ef0 user: jan.nijtmans tags: branch-1.28
08:29
Cherrypick SQLite ac15455abc: In the command-line shell, defend against a NULL-pointer dereference in the case where sqlite3_column_name() returns NULL (as might happen following an OOM error) check-in: a12b9c45 user: jan.nijtmans tags: branch-1.28
2014-01-13
23:33
Make sure that TH1 variables get removed from the call frame upon being unset. check-in: 7905fb22 user: mistachkin tags: branch-1.28
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/shell.c.

593
594
595
596
597
598
599

600
601
602
603
604
605
606

/*
** Output the given string with characters that are special to
** HTML escaped.
*/
static void output_html_string(FILE *out, const char *z){
  int i;

  while( *z ){
    for(i=0;   z[i] 
            && z[i]!='<' 
            && z[i]!='&' 
            && z[i]!='>' 
            && z[i]!='\"' 
            && z[i]!='\'';







>







593
594
595
596
597
598
599
600
601
602
603
604
605
606
607

/*
** Output the given string with characters that are special to
** HTML escaped.
*/
static void output_html_string(FILE *out, const char *z){
  int i;
  if( z==0 ) z = "";
  while( *z ){
    for(i=0;   z[i] 
            && z[i]!='<' 
            && z[i]!='&' 
            && z[i]!='>' 
            && z[i]!='\"' 
            && z[i]!='\'';