Skip to content

Commit e764f37

Browse files
committed
f
1 parent 9939751 commit e764f37

File tree

5 files changed

+577
-540
lines changed

5 files changed

+577
-540
lines changed

lib/Core/Executor.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4861,7 +4861,9 @@ bool Executor::reachedMaxSeedInstructions(ExecutionState *state) {
48614861
if (siit->maxInstructions &&
48624862
siit->maxInstructions >= state->steppedInstructions) {
48634863
state->coveredNew = siit->coveredNew;
4864-
state->coveredNewError = siit->coveredNewError;
4864+
if (siit->coveredNewError) {
4865+
state->coveredNewError = siit->coveredNewError;
4866+
}
48654867
seedMap->erase(state);
48664868
objectManager->unseed(state);
48674869
if (seedMap->size() == 0) {

lib/Core/SeedInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ExecutingSeed {
3434
std::set<struct KTestObject *> used;
3535
std::string path = "";
3636
mutable std::deque<ref<box<bool>>> coveredNew;
37-
mutable ref<box<bool>> coveredNewError;
37+
mutable ref<box<bool>> coveredNewError = nullptr;
3838
unsigned inputPosition = 0;
3939

4040
public:

0 commit comments

Comments
 (0)