Skip to content

isAdditionalTaintStep() required for a StaticMethod ? #11611

Answered by yoff
Sim4n6 asked this question in Q&A
Discussion options

You must be logged in to vote

As mentioned by @atorralba, there is no way to conclude the flow you are expecting without knowing something about fct_source and fct_sink. If I write the program

class Foo:
    def __init__(self, foo=NONSOURCE):
        self.foo = foo

def prop_source(in1, btw):
    btw.foo = in1.foo

def prop_sink(btw, out1):
    out1.foo = btw.foo

def test_prop():
    in1 = Foo(SOURCE)
    btw = Foo()
    out1 = Foo()
    prop_source(in1,btw)
    prop_sink(btw,out1)
    SINK(out1.foo) # $ flow="SOURCE, l:-5 -> out1.foo"

class ArtProp:
    def __init__(self, foo=NONSOURCE):
        self.foo = foo

    @staticmethod
    def down(in1, btw):
        prop_source(in1, btw)

    @staticmethod
    def copy(btw

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Sim4n6
Comment options

@atorralba
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Sim4n6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants