You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the first time I have learn a similar project, i'm try use taint tracking int type,like following code
public class Main {
public static int taint() { return 5; }
public static void sink(int o) { }
public static void maintest() {
int a = taint();
int b=a+1;
sink(b);
}
}
The question of whether to track taint through additions has different default answers depending on the language. For C/C++ a lot of taint has to with buffer overflows and the like, so in that case we treat addition as a taint-propagating step by default, whereas for something like Java taint is usually propagated in strings and other objects, so there we don't include integer addition as default taint steps.
So if you want to write a query that tracks this sort of thing you can just add some additional taint steps to the configuration by e.g. adding the following override:
Activity
aschackmull commentedon Dec 18, 2020
The question of whether to track taint through additions has different default answers depending on the language. For C/C++ a lot of taint has to with buffer overflows and the like, so in that case we treat addition as a taint-propagating step by default, whereas for something like Java taint is usually propagated in strings and other objects, so there we don't include integer addition as default taint steps.
So if you want to write a query that tracks this sort of thing you can just add some additional taint steps to the configuration by e.g. adding the following override:
rhakb commentedon Dec 19, 2020
o , thinks , it's work , That sounds reasonable