panda-re / lava

LAVA: Large-scale Automated Vulnerability Addition
Other
371 stars 60 forks source link

Incorrect behavior in lavaInitTool #13

Open AndrewFasano opened 5 years ago

AndrewFasano commented 5 years ago

LavaInitTool sometimes initialize variables that are already initialized and forces manual patches:

For example:

int coefi, cindex = cinfo->cur_comp_info[ci]->component_index;

becomes

int coefi, cindex = cinfo->cur_comp_info[ci]->component_index={0};

This happens infrequently enough that we can just manually fix these up for now, but it would be nice to fix.

AndrewFasano commented 5 years ago

Another similar failure:

size_t keycc = 0, oldcc, keyalloc = 0

becomes

size_t keycc = 0, oldcc, keyalloc = 0={0};