@@ -5037,8 +5037,9 @@ void Executor::terminateStateOnTargetTaintError(ExecutionState &state,
5037
5037
reportStateOnTargetError (
5038
5038
state, ReachWithError (ReachWithErrorType::MaybeTaint, ruleStr));
5039
5039
5040
- terminateStateOnProgramError (state, ruleStr + " taint error" ,
5041
- StateTerminationType::Taint);
5040
+ terminateStateOnProgramError (
5041
+ state, new ErrorEvent (locationOf (state), StateTerminationType::Taint,
5042
+ ruleStr + " taint error" ));
5042
5043
}
5043
5044
5044
5045
void Executor::terminateStateOnError (ExecutionState &state,
@@ -5569,9 +5570,10 @@ void Executor::executeChangeTaintSource(ExecutionState &state,
5569
5570
5570
5571
ObjectState *wos = it->second ->addressSpace .getWriteable (mo, os.get ());
5571
5572
if (wos->readOnly ) {
5572
- terminateStateOnProgramError (*(it->second ),
5573
- " memory error: object read only" ,
5574
- StateTerminationType::ReadOnly);
5573
+ terminateStateOnProgramError (
5574
+ *(it->second ), new ErrorEvent (locationOf (*(it->second )),
5575
+ StateTerminationType::ReadOnly,
5576
+ " memory error: object read only" ));
5575
5577
} else {
5576
5578
wos->updateTaint (Expr::createTaintBySource (source), isAdd);
5577
5579
errs () << " source was: " << source << " " ;
0 commit comments