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

Overview
Comment:Be careful not to return a pointer to a webpage generator as a command-line command method.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:38df2a45445448495126fa136133d51cf7ee753a7bd73859bac9ea31f759a0ce
User & Date: drh 2017-07-12 16:57:58
Context
2017-07-12
18:08
Update to the latest SQLite from upstream and make other changes, all to silence a few utterly harmless compiler warnings about incompletely initialized structures. check-in: 2f225b82 user: drh tags: trunk
16:57
Be careful not to return a pointer to a webpage generator as a command-line command method. check-in: 38df2a45 user: drh tags: trunk
03:02
Fix a typo on the security audit webpage. check-in: 35f712d4 user: drh tags: trunk
Changes

Changes to src/dispatch.c.

96
97
98
99
100
101
102

103
104
105
106
107
108
109
  lwr = 0;
  upr = MX_COMMAND - 1;
  while( lwr<=upr ){
    int c;
    mid = (upr+lwr)/2;
    c = strcmp(zName, aCommand[mid].zName);
    if( c==0 ){

      *ppCmd = &aCommand[mid];
      return 0;  /* An exact match */
    }else if( c<0 ){
      upr = mid - 1;
    }else{
      lwr = mid + 1;
    }







>







96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
  lwr = 0;
  upr = MX_COMMAND - 1;
  while( lwr<=upr ){
    int c;
    mid = (upr+lwr)/2;
    c = strcmp(zName, aCommand[mid].zName);
    if( c==0 ){
      if( (aCommand[mid].eCmdFlags & eType)==0 ) return 1;
      *ppCmd = &aCommand[mid];
      return 0;  /* An exact match */
    }else if( c<0 ){
      upr = mid - 1;
    }else{
      lwr = mid + 1;
    }