skyhover / Deckard

Code clone detection; clone-related bug detection; sematic clone analysis
Other
209 stars 78 forks source link

Crash on "return A?B:C" #19

Open ITWOI opened 5 years ago

ITWOI commented 5 years ago

When I use the command: "cvecgen -i ../../src/dircolors.c -o tmp.vec --start-line-number 508 --end-line-number 508" The output is "cvecgen: tree-accessor.C:81: static TreeVector TreeAccessor::get_node_vector(Tree): Assertion `attr_itr!=t->attributes.end()' failed."

Please refer to the attachment for the file dircolors.c.

dircolors.c.zip

ITWOI commented 5 years ago

BTW, it failed to parse cksum.c, which is attached. It shows "failed to parse file: ../../src/cksum.c". The reason is due to the "die" function at lines 216, 251, 314.

cksum.c.zip