/ Check-in [1964e656]
Login

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

Overview
Comment:The va_list argument cannot take on a NULL value and cannot be compared with NULL on some platforms (ex: ARM). So do not attempt to do so.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1964e656b4b420e8d6a4ba12d270ed02db292b88
User & Date: drh 2015-01-25 20:19:53
Context
2015-01-27
13:17
Fix a (almost always harmless) read past the end of a memory allocation that comes about because the Expr.pTab field is checked on an EXPR_REDUCEDSIZE Expr object before checking the Expr.op field to know that the Expr.pTab field is meaningless. check-in: e098de69 user: drh tags: trunk
2015-01-25
20:19
The va_list argument cannot take on a NULL value and cannot be compared with NULL on some platforms (ex: ARM). So do not attempt to do so. check-in: 1964e656 user: drh tags: trunk
2015-01-24
12:12
In the command-line shell, make sure stderr is unbuffered so that it automatically flushes. This has always been the case already for unix and on Windows when the output is a console, but apparently was not the case on Windows when the output was a pipe. check-in: 2a9ea9b4 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/printf.c.

   208    208     double rounder;            /* Used for rounding floating point values */
   209    209     etByte flag_dp;            /* True if decimal point should be shown */
   210    210     etByte flag_rtz;           /* True if trailing zeros should be removed */
   211    211   #endif
   212    212     PrintfArguments *pArgList = 0; /* Arguments for SQLITE_PRINTF_SQLFUNC */
   213    213     char buf[etBUFSIZE];       /* Conversion buffer */
   214    214   
   215         -#ifdef SQLITE_ENABLE_API_ARMOR
   216         -  if( ap==0 ){
   217         -    (void)SQLITE_MISUSE_BKPT;
   218         -    sqlite3StrAccumReset(pAccum);
   219         -    return;
   220         -  }
   221         -#endif
   222    215     bufpt = 0;
   223    216     if( bFlags ){
   224    217       if( (bArgList = (bFlags & SQLITE_PRINTF_SQLFUNC))!=0 ){
   225    218         pArgList = va_arg(ap, PrintfArguments*);
   226    219       }
   227    220       useIntern = bFlags & SQLITE_PRINTF_INTERNAL;
   228    221     }else{