Ken-Patrick Lehrmann
7a75aa084b
Fix crash in CheckUninitVar (#2129)
http://cppcheck.osuosl.org:8000/ycmd
```
2019-08-30 23:21
ftp://ftp.se.debian.org/debian/pool/main/y/ycmd/ycmd_0+20181101+git600f54d.orig.tar.gz
cppcheck-options: -j1 --library=posix --library=gnu --library=qt --library=python --library=googletest --library=boost -D__GNUC__ --check-library --inconclusive --enable=style,information --platform=unix64 --template=daca2 -rp=temp temp
platform: Linux-4.15.0-58-generic-x86_64-with-Ubuntu-18.04-bionic
python: 2.7.15+
client-version: 1.1.31
cppcheck: head 1.88
count: Crash! 83
elapsed-time: -11.0 61.2
head results:
Checking temp/ycmd-0+20181101+git600f54d/ycmd/tests/clang/testdata/completion_fixit.cc: __GNUC__=1...
Program received signal SIGSEGV, Segmentation fault.
CheckUninitVar::valueFlowUninit (this=this@entry=0x7fffffffb350) at build/checkuninitvar.cpp:2376
2376 if (!tok->variable())
#0 CheckUninitVar::valueFlowUninit (this=this@entry=0x7fffffffb350) at build/checkuninitvar.cpp:2376
#1 0x00005555556901ac in CheckUninitVar::runChecks (this=<optimized out>, tokenizer=0x7fffffffbcb0, settings=0x7fffffffcd10, errorLogger=<optimized out>) at lib/checkuninitvar.h:68
#2 0x00005555556a2210 in CppCheck::checkNormalTokens (this=this@entry=0x7fffffffcaf0, tokenizer=...) at build/cppcheck.cpp:730
#3 0x00005555556a6ee2 in CppCheck::checkFile (this=this@entry=0x7fffffffcaf0, filename="temp/ycmd-0+20181101+git600f54d/ycmd/tests/clang/testdata/completion_fixit.cc", cfgname="", fileStream=...) at build/cppcheck.cpp:540
#4 0x00005555556aad4c in CppCheck::check (this=this@entry=0x7fffffffcaf0, path="temp/ycmd-0+20181101+git600f54d/ycmd/tests/clang/testdata/completion_fixit.cc") at build/cppcheck.cpp:195
#5 0x00005555557ef167 in CppCheckExecutor::check_internal (this=this@entry=0x7fffffffd880, cppcheck=..., argv=argv@entry=0x7fffffffdc08) at cli/cppcheckexecutor.cpp:884
#6 0x00005555557efa9a in CppCheckExecutor::check (this=0x7fffffffd880, argc=17, argv=0x7fffffffdc08) at cli/cppcheckexecutor.cpp:198
#7 0x00005555555b1d1b in main (argc=17, argv=0x7fffffffdc08) at cli/main.cpp:95
```
2019-09-01 14:51:40 +02:00
..
2019-06-29 07:49:14 +02:00
2018-10-13 18:20:31 +02:00
2019-08-30 18:32:45 +02:00
2019-08-30 18:32:45 +02:00
2018-06-16 16:10:28 +02:00
2019-03-16 09:17:50 +01:00
2019-09-01 11:49:43 +02:00
2019-07-25 17:19:51 +02:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2019-08-14 20:09:33 +02:00
2019-07-07 10:16:19 +02:00
2019-06-29 07:49:14 +02:00
2019-03-16 09:17:50 +01:00
2018-06-16 16:10:28 +02:00
2019-03-16 09:17:50 +01:00
2019-07-16 10:51:26 +02:00
2019-06-15 13:01:45 +02:00
2019-09-01 09:53:45 +02:00
2019-08-13 20:58:31 +02:00
2019-08-16 07:56:39 +02:00
2019-07-16 08:21:25 +02:00
2018-07-14 09:49:03 +02:00
2019-03-16 09:17:50 +01:00
2019-07-16 08:49:02 +02:00
2019-07-16 08:49:02 +02:00
2019-04-06 07:44:44 +02:00
2019-03-16 09:17:50 +01:00
2019-07-16 09:30:36 +02:00
2019-07-16 08:37:26 +02:00
2019-08-18 19:45:39 +02:00
2019-07-16 08:54:21 +02:00
2019-08-23 06:33:00 +02:00
2019-08-13 13:00:59 +02:00
2019-04-26 11:30:09 +02:00
2019-03-16 09:17:50 +01:00
2019-08-30 18:32:45 +02:00
2019-08-25 09:45:39 +02:00
2018-07-13 16:50:12 +02:00
2019-03-16 09:17:50 +01:00
2019-06-29 07:49:14 +02:00
2019-03-16 09:17:50 +01:00
2019-08-24 15:40:29 +02:00
2019-07-18 10:56:44 +02:00
2019-07-05 12:27:39 +02:00
2019-04-06 06:54:38 +02:00
2019-08-31 07:40:57 +02:00
2019-08-05 12:41:08 +02:00
2019-09-01 14:51:40 +02:00
2019-08-15 10:46:16 +02:00
2019-04-27 17:17:51 +02:00
2019-03-16 09:17:50 +01:00
2019-08-04 10:21:16 +02:00
2019-03-16 09:17:50 +01:00
2019-02-09 07:24:06 +01:00
2019-03-16 09:17:50 +01:00
2019-04-22 18:52:02 +02:00
2019-05-17 09:31:41 +02:00
2019-08-18 16:33:32 +02:00
2019-04-14 15:00:03 +02:00
2018-07-09 08:27:26 +02:00
2019-07-15 12:39:58 +02:00
2018-12-27 22:11:40 +01:00
2019-08-18 12:19:05 +02:00
2019-07-31 22:56:16 +02:00
2019-08-18 16:33:32 +02:00
2019-08-18 16:33:32 +02:00
2019-08-09 21:15:02 +02:00
2019-08-12 12:54:25 +02:00
2019-08-14 20:53:51 +02:00
2019-08-17 10:53:07 +02:00
2019-08-15 21:14:54 +02:00
2016-01-01 15:34:45 +02:00
2019-07-17 10:43:18 +02:00
2019-02-09 07:24:06 +01:00
2019-04-30 20:31:46 +02:00
2019-02-09 07:24:06 +01:00
2018-10-13 18:20:31 +02:00
2018-10-13 18:20:31 +02:00
2019-09-01 11:49:43 +02:00
2019-09-01 11:49:43 +02:00
2019-08-18 12:19:05 +02:00
2018-06-17 09:06:16 +02:00
2019-07-31 22:35:51 +02:00
2019-09-01 14:44:03 +02:00
2019-06-29 07:49:14 +02:00
2019-06-29 07:53:32 +02:00
2019-06-29 07:53:32 +02:00
2019-09-01 11:36:02 +02:00
2019-08-08 07:46:47 +02:00
2019-09-01 09:56:33 +02:00
2019-09-01 09:56:33 +02:00
2019-09-01 11:49:43 +02:00
2019-07-31 22:35:51 +02:00
2019-08-24 14:43:35 +02:00
2019-08-18 12:19:05 +02:00
2019-08-23 06:43:02 +02:00
2019-07-31 09:19:27 +02:00
2019-08-20 20:53:44 +02:00
2019-08-17 07:38:07 +02:00
2019-09-01 11:49:43 +02:00
2019-09-01 09:44:34 +02:00
2019-08-17 07:36:41 +02:00
2019-09-01 12:16:33 +02:00