/ Check-in [ac15455a]
Login

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

Overview
Comment: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 | trunk
Files: files | file ages | folders
SHA1: ac15455abcb9bdb88b53129348668a1442f6899f
User & Date: drh 2014-01-13 20:38:35
Context
2014-01-14
10:17
For the Win32 VFS, defining winShmMutexHeld should be controlled by NDEBUG, not SQLITE_DEBUG. check-in: 1e131094 user: mistachkin tags: trunk
2014-01-13
20:38
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: ac15455a user: drh tags: trunk
20:32
For statements of just an unadorned VALUES clause, assign column names as "columnN" for increasing whole numbers N. check-in: 260587d2 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

   593    593   
   594    594   /*
   595    595   ** Output the given string with characters that are special to
   596    596   ** HTML escaped.
   597    597   */
   598    598   static void output_html_string(FILE *out, const char *z){
   599    599     int i;
          600  +  if( z==0 ) z = "";
   600    601     while( *z ){
   601    602       for(i=0;   z[i] 
   602    603               && z[i]!='<' 
   603    604               && z[i]!='&' 
   604    605               && z[i]!='>' 
   605    606               && z[i]!='\"' 
   606    607               && z[i]!='\'';