MCPcopy Create free account

hub / github.com/akwick/gotcha / functions

Functions454 in github.com/akwick/gotcha

MethodString
()
worklist/wlMap.go:45
MethodString
String returns a string representation of c.
worklist/contextCallSite.go:68
MethodString
String returns a readable string of a transition.
worklist/transition.go:51
MethodString
String returns a readable version of a value context
worklist/valueContext.go:75
MethodString
String returns a string reperesentation for v
worklist/valueContext.go:204
MethodTargetContext
TagerContext returns the context of the callee
worklist/transition.go:66
FunctionTestAliasingThroughFields
(t *testing.T)
tests/pointers_test.go:44
FunctionTestAlloc
A flow function to a allocation should return always untainted
lattice/taint/flow_test.go:29
FunctionTestAssignTSToNewVariable
(t *testing.T)
tests/pointers_test.go:17
FunctionTestBinOp
(t *testing.T)
lattice/taint/flow_test.go:59
FunctionTestCall
(t *testing.T)
lattice/taint/flow_test.go:93
FunctionTestCallTainted
(t *testing.T)
lattice/taint/flow_test.go:150
FunctionTestChangeChannelValueInClosure
(t *testing.T)
tests/channels_test.go:24
FunctionTestChangeInterface
(t *testing.T)
lattice/taint/flow_test.go:225
FunctionTestChangeType
(t *testing.T)
lattice/taint/flow_test.go:265
FunctionTestChannelExample
(t *testing.T)
worklist/conveyThesis_test.go:9
FunctionTestChannelWithPointer
(t *testing.T)
tests/channels_test.go:31
FunctionTestConvert
(t *testing.T)
lattice/taint/flow_test.go:304
FunctionTestDeepCopy
* Test object 1: L1: {t1 -> Empty, t2 -> Tainted, t3 -> Untainted, t5 -> Both} Result: deepcopy=l1.DeepCopy() == l1 Then add an element to object 1 A
lattice/taint/taintLattice_test.go:377
FunctionTestDefer
(t *testing.T)
lattice/taint/flow_test.go:333
FunctionTestElementValueContext
expect: value context{function: mainfunction, init: empty, exit: empty}
worklist/initContext_test.go:55
FunctionTestElementsWorklist
expect: correct ssa instructions
worklist/initContext_test.go:31
FunctionTestExtract
(t *testing.T)
lattice/taint/flow_test.go:387
FunctionTestField
(t *testing.T)
lattice/taint/flow_test.go:414
FunctionTestFieldAddr
(t *testing.T)
lattice/taint/flow_test.go:431
FunctionTestFieldSensitiv
(t *testing.T)
tests/pointers_test.go:11
FunctionTestFlow
(t *testing.T)
worklist/worklist_test.go:158
FunctionTestFunctionAsParameter
(t *testing.T)
tests/pointers_test.go:36
FunctionTestGetSuccessors
(t *testing.T)
worklist/wlHelper_test.go:29
FunctionTestGetVal
* Test object 1: L1: {t1 -> Empty, t2 -> Tainted, t3 -> Untainted, t5 -> Both} For all elements in L1 check whether the lattice value is as expected
lattice/taint/taintLattice_test.go:402
FunctionTestGo
(t *testing.T)
lattice/taint/flow_test.go:460
FunctionTestHelloWorldConvey
(t *testing.T)
worklist/convey_test.go:12
FunctionTestIdoms
(t *testing.T)
worklist/wlHelper_test.go:131
FunctionTestInEqual
(t *testing.T)
worklist/valueContext_test.go:5
FunctionTestIndex
(t *testing.T)
lattice/taint/flow_test.go:514
FunctionTestIndexAddr
(t *testing.T)
lattice/taint/flow_test.go:542
FunctionTestLookup
(t *testing.T)
lattice/taint/flow_test.go:563
FunctionTestMakeClosure
(t *testing.T)
lattice/taint/flow_test.go:593
FunctionTestMakeInterface
(t *testing.T)
lattice/taint/flow_test.go:624
FunctionTestMakeMap
(t *testing.T)
lattice/taint/flow_test.go:642
FunctionTestMapUpdate
(t *testing.T)
lattice/taint/flow_test.go:655
FunctionTestMultipleSSAValues
(t *testing.T)
lattice/taint/flowMultipleValues_test.go:9
FunctionTestNext
(t *testing.T)
lattice/taint/flow_test.go:696
FunctionTestNoOutput
(t *testing.T)
tests/cmd_test.go:11
FunctionTestNumberElementsWorklist1
(t *testing.T)
worklist/initContext_test.go:11
FunctionTestNumberTransitions
expect: 0 elements in transitions
worklist/initContext_test.go:24
FunctionTestNumberValueContexts
(t *testing.T)
worklist/initContext_test.go:17
FunctionTestOutput_missingSrcFlag
Test that: a) Execution of the starting program for the analysis works b) The help message contains the three flags (-path, -src, -ssf)
tests/cmd_test.go:23
FunctionTestPanic
(t *testing.T)
lattice/taint/flow_test.go:714
MethodTestParser
* Test object: File: ../../sourcesAndSinks.txt expect: 40 sources, 5 sinks and 6 source-interfaces, 0 sink-interfaces */
lattice/taint/parser_test.go:23
FunctionTestParserSuite
(t *testing.T)
lattice/taint/parser_test.go:54
FunctionTestPhi
(t *testing.T)
lattice/taint/flow_test.go:732
FunctionTestPointerAsParameterCall
(t *testing.T)
tests/pointers_test.go:30
FunctionTestPointerAsParameterSignature
(t *testing.T)
tests/pointers_test.go:23
FunctionTestPredecessors
(t *testing.T)
worklist/worklist_test.go:13
FunctionTestRange
(t *testing.T)
lattice/taint/flow_test.go:771
FunctionTestReportedFlows_others
(t *testing.T)
tests/basics_test.go:5
FunctionTestReportedFlows_sinkSource
TODO teardown which deletes files if no error occurs
tests/numberReportedFlows_test.go:9
FunctionTestSTore
(t *testing.T)
lattice/taint/flow_test.go:808
FunctionTestSimpleLinkList
(t *testing.T)
tests/.LinkedList_test.go:5
FunctionTestSimpleLinkedListConvey
(t *testing.T)
worklist/convey_test.go:36
FunctionTestSinkTS
(t *testing.T)
tests/pointers_test.go:5
FunctionTestSlice
(t *testing.T)
lattice/taint/flow_test.go:788
FunctionTestTaintAfterGoInFAsClosure
(t *testing.T)
tests/channels_test.go:18
FunctionTestTaintAfterGoInMain
(t *testing.T)
tests/channels_test.go:11
FunctionTestTaintForGoInMain
(t *testing.T)
tests/channels_test.go:5
FunctionTestTlBottomElem
TestTlBottomElem tests whether the function LestElement works as expected. * test object: t1 -> Empty | t2 -> Tainted | t3 -> Untainted | t5 -> Both t
lattice/taint/taintLattice_test.go:19
FunctionTestTlEqual
* Test object 1: L1: {t1 -> Empty, t2 -> Tainted, t3 -> Untainted, t5 -> Both} Test object 2: L4: {t2 -> Tainted, t3 -> Untainted, t5 -> Both} Test ob
lattice/taint/taintLattice_test.go:226
FunctionTestTlGreater
* Test object 1: L1: {t1 -> Empty, t2 -> Tainted, t3 -> Untainted, t5 -> Both} Test object 2: L2: {t1 -> Tainted, t2 -> Untainted, t3 -> Empty, t4 -
lattice/taint/taintLattice_test.go:306
FunctionTestTlGreaterEqual
* Test object 1: L1: {t1 -> Empty, t2 -> Tainted, t3 -> Untainted, t5 -> Both} Test object 2: L2: {t1 -> Tainted, t2 -> Untainted, t3 -> Empty, t4 -
lattice/taint/taintLattice_test.go:344
FunctionTestTlGreatestLowerBound
* test object 1: L1: {t1 -> Empty, t2 -> Tainted, t3 -> Untainted, t5 -> Both} test object 2: L2: {t1 -> Tainted, t2 -> Untainted, t3 -> Empty, t4
lattice/taint/taintLattice_test.go:141
FunctionTestTlImplL
(t *testing.T)
lattice/taint/taintValue_test.go:21
FunctionTestTlLeastUpperBound
TestTlLeastUpperBound tests whether the lup of two distinct lattices are build correctly * test object 1: t1 -> Empty | t2 -> Tainted | t3 -> Untainte
lattice/taint/taintLattice_test.go:71
FunctionTestTlLeastUpperBoundEqualLattices
TestTlLeastUpperBoundEqualLattices tests whether the lup of two equal lattices is the same. * test object 1: t1 -> Empty | t2 -> Tainted | t3 -> Untai
lattice/taint/taintLattice_test.go:115
FunctionTestTlLess
* Test object 1: L1: {t1 -> Empty, t2 -> Tainted, t3 -> Untainted, t5 -> Both} Test object 2: L2: {t1 -> Tainted, t2 -> Untainted, t3 -> Empty, t4 -
lattice/taint/taintLattice_test.go:183
FunctionTestTlLessEqual
* Test object 1: L1: {t1 -> Empty, t2 -> Tainted, t3 -> Untainted, t5 -> Both} Test object 2: L4: {t2 -> Tainted, t3 -> Untainted, t5 -> Both} Test
lattice/taint/taintLattice_test.go:269
FunctionTestTlvBottomElem
(t *testing.T)
lattice/taint/taintValue_test.go:32
FunctionTestTlvEqual
(t *testing.T)
lattice/taint/taintValue_test.go:222
FunctionTestTlvGratestLowerBound
(t *testing.T)
lattice/taint/taintValue_test.go:120
FunctionTestTlvGreater
(t *testing.T)
lattice/taint/taintValue_test.go:292
FunctionTestTlvGreaterEqual
(t *testing.T)
lattice/taint/taintValue_test.go:326
FunctionTestTlvImplLv
(t *testing.T)
lattice/taint/taintValue_test.go:9
FunctionTestTlvLeastUpperBound
(t *testing.T)
lattice/taint/taintValue_test.go:50
FunctionTestTlvLess
(t *testing.T)
lattice/taint/taintValue_test.go:187
FunctionTestTlvLessEqual
(t *testing.T)
lattice/taint/taintValue_test.go:258
FunctionTestTlvTopElem
(t *testing.T)
lattice/taint/taintValue_test.go:41
FunctionTestTypeAssert
(t *testing.T)
lattice/taint/flow_test.go:830
FunctionTestUnOp
(t *testing.T)
lattice/taint/flow_test.go:848
FunctionTestUpdatePredecessors
(t *testing.T)
worklist/worklist_test.go:50
MethodTopElement
TopElement returns the highest element of the lattice.
lattice/taint/taintLattice.go:406
MethodTransferFunction
Semanticer interface
lattice/taint/taintLatticePointer.go:160
MethodTransferFunction
TransferFunction handels a normal transfer of an instruction. Returns nil if an error occurs.
lattice/taint/flowFunc.go:99
MethodUpdateOut
UpdateOut update the exit lattice of v with the lup of the current value and l.
worklist/valueContext.go:241
Methodadd
(s string)
tests/exampleCode/simpleLinkedList0.go:74
Methodadd
(s string)
tests/exampleCode/simpleLinkedListOnlyTaint.go:69
Methodadd
(s string)
tests/exampleCode/h/linkedList.go:59
MethodaddToContext
(vc *ValueContext)
worklist/valueContext.go:179
FunctionbuildLUP
build lup of l1 and l2 and returns a taint.Lattice
worklist/wlHelper.go:257
MethodfindInContext
findInContext tries to find a context for callee and lin. If a context is found: this will be returned. If an error occurs while checking: the error w
worklist/valueContext.go:187
MethodgetData
()
tests/exampleCode/simpleLinkedList0.go:70
← previousnext →301–400 of 454, ranked by callers