Skip to content

Commit 0910264

Browse files
committed
Fix style
1 parent 84af116 commit 0910264

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

include/klee/Expr/Expr.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,7 @@ class PointerExpr : public NonConstantExpr {
17391739

17401740
bool isKnownValue() const { return getBase()->isZero(); }
17411741

1742-
ref<ConstantExpr> combineTaints(const ref<PointerExpr> &RHS) {
1742+
ref<Expr> combineTaints(const ref<PointerExpr> &RHS) {
17431743
return Expr::combineTaints(getTaint(), RHS->getTaint());
17441744
}
17451745

lib/Module/Annotation.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,6 @@ Free::Free(const std::string &str) : Unknown(str) {
140140
Kind Free::getKind() const { return Kind::Free; }
141141

142142
Taint::Taint(const std::string &str) : Unknown(str) {
143-
if (!rawOffset.empty()) {
144-
klee_error("Annotation Taint: Incorrect offset format, must be empty");
145-
}
146-
147143
taintType = rawValue.substr(0, rawValue.find(':'));
148144
// TODO: in the future, support typeless annotations (meaning all types)
149145
if (taintType.empty()) {
@@ -166,7 +162,7 @@ TaintOutput::TaintOutput(const std::string &str) : Taint(str) {}
166162
Kind TaintOutput::getKind() const { return Kind::TaintOutput; }
167163

168164
/*
169-
* Format: TaintPropagation::{type}:{data}
165+
* Format: TaintPropagation:{offset}:{type}:{data}
170166
*/
171167

172168
TaintPropagation::TaintPropagation(const std::string &str) : Taint(str) {
@@ -201,7 +197,7 @@ TaintPropagation::TaintPropagation(const std::string &str) : Taint(str) {
201197
Kind TaintPropagation::getKind() const { return Kind::TaintPropagation; }
202198

203199
/*
204-
* Format: TaintSink::{type}
200+
* Format: TaintSink:{offset}:{type}
205201
*/
206202

207203
TaintSink::TaintSink(const std::string &str) : Taint(str) {}

0 commit comments

Comments
 (0)