Closed h2oche closed 3 years ago
Thanks for starting good discussion.
I showed the usage of meet
in the lecture. If you have a different thought, think about your design a bit more carefully. Doesn't your design implicitly subsume meet?
Top.
It is up to you.
Let us assume that conditional statements do not filter tainted values. Only sanitizer can filter.
Ignore Travis. That's obsolete.
Regarding dune, thanks for reporting the issue. You are right. In addition, please append the following lines.
+(rule
+ (deps example4.ll)
+ (action
+ (with-stdout-to
+ example4.output
+ (run ../analyzer taint example4.ll))))
+
+(rule
+ (alias runtest)
+ (action
+ (diff example4.expected example4.output)))
+
+(rule
+ (deps example5.ll)
+ (action
+ (with-stdout-to
+ example5.output
+ (run ../analyzer taint example5.ll))))
+
+(rule
+ (alias runtest)
+ (action
+ (diff example5.expected example5.output)))
Thanks for your clarification.
meet
operator. I just want to know if it is okay. Is it okay to leave "Not implemented"?dune/test
as your diff, but I got error. I think there is no example4.expected
and example5.expected
files in our repository.It is totally ok to implement filter
without explicitly using meet
. But I strongly recommend you implement meet
since we might have unit tests for some operators, for the grading.
Yes. Thank you again. Here are the files.
new file mode 100644
index 0000000..ac488ee
--- /dev/null
+++ b/test/example4.expected
@@ -0,0 +1 @@
+Potential Tainted-flow @ example4.c:main:5:3 (call void @sink(i32 %call), !dbg !14)
diff --git a/test/example5.expected b/test/example5.expected
new file mode 100644
index 0000000..ccb4aef
--- /dev/null
+++ b/test/example5.expected
@@ -0,0 +1 @@
+Potential Tainted-flow @ example5.c:main:12:3 (call void @sink(i32 %y.0), !dbg !23)
넵, 한 학기 동안 감사했습니다!
Hello.
About homework 5, I have some questions.
meet
operator in value domain? It seems thatmeet
operator is not used within our homework.sanitizer(x)
in sign analysis? Is it top?Utils
? Specifically, I want to change the implementation offlip_pred
. As I understand, it seems that functionality offilp_pred
is just to change the direction of comparator. However, it changes==
to!=
and!=
to==
, so I want to fix this.sink
should be regarded as tainted?Finally, I think there is some mistakes in our test script. If we just run
make test
in the base directory, it doesn't work. It works only after I fixedtest/dune
file. The change is as follows: