Task #119476 - added.err

back to task #119476
download
Error: GCC_ANALYZER_WARNING (CWE-476):
sqlite-src-3530100/tool/lemon.c:2140:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cp’
sqlite-src-3530100/tool/lemon.c:2217:5: enter_function: entry to ‘OptInit’
sqlite-src-3530100/tool/lemon.c:2225:14: branch_true: following ‘true’ branch...
sqlite-src-3530100/tool/lemon.c:2226:11: branch_true: ...to here
sqlite-src-3530100/tool/lemon.c:2229:19: call_function: calling ‘handleswitch’ from ‘OptInit’
# 2138|     cp = strchr(g_argv[i],'=');
# 2139|     assert( cp!=0 );
# 2140|->   *cp = 0;
# 2141|     for(j=0; op[j].label; j++){
# 2142|       if( strcmp(g_argv[i],op[j].label)==0 ) break;

Error: COMPILER_WARNING (CWE-704):
sqlite-src-3530100/tool/sqlite3_rsync.c: scope_hint: In function ‘hostSeparator’
sqlite-src-3530100/tool/sqlite3_rsync.c:2020:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 2020 |   char *zPath = strchr(zIn, ':');
#      |                 ^~~~~~
# 2018|   */
# 2019|   static char *hostSeparator(const char *zIn){
# 2020|->   char *zPath = strchr(zIn, ':');
# 2021|     if( zPath==0 ) return 0;
# 2022|   #ifdef _WIN32