/ Check-in [6f91dca0]
Login

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

Overview
Comment:Fix a possible NULL pointer deference in the wordcount test program.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6f91dca0de908dc2b15130a6593a61c3147a409f
User & Date: drh 2013-11-26 16:51:13
Context
2013-11-26
18:22
Reduce the amount of code used to implement OP_SeekGe and similar. check-in: 8b12a15a user: dan tags: trunk
18:00
Merge in performance enhancements from trunk. check-in: fc9ae839 user: drh tags: sessions
16:51
Fix a possible NULL pointer deference in the wordcount test program. check-in: 6f91dca0 user: drh tags: trunk
16:48
Change tclsqlite3.c so that it never invokes ctype macros with signed character arguments. check-in: c07caabf user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test/wordcount.c.

112
113
114
115
116
117
118
119
120
121
122
123
124
125
126

/* An sqlite3_exec() callback that prints results on standard output,
** each column separated by a single space. */
static int printResult(void *NotUsed, int nArg, char **azArg, char **azNm){
  int i;
  printf("--");
  for(i=0; i<nArg; i++){
    printf(" %s", azArg[i]);
  }
  printf("\n");
  return 0;
}


/*







|







112
113
114
115
116
117
118
119
120
121
122
123
124
125
126

/* An sqlite3_exec() callback that prints results on standard output,
** each column separated by a single space. */
static int printResult(void *NotUsed, int nArg, char **azArg, char **azNm){
  int i;
  printf("--");
  for(i=0; i<nArg; i++){
    printf(" %s", azArg[i] ? azArg[i] : "(null)");
  }
  printf("\n");
  return 0;
}


/*