Rasmus Wriedt Larsen
|
47448d9efc
|
Python: Apply suggestions from code review
Co-authored-by: yoff <lerchedahl@gmail.com>
|
2021-11-24 12:02:12 +01:00 |
|
Rasmus Wriedt Larsen
|
eaed870b31
|
Python: Fix performance problem in PoorMansFunctionResolution
Before these changes:
[2021-11-22 12:02:50] (8s) Tuple counts for PoorMansFunctionResolution::getSimpleMethodReferenceWithinClass#ff/2@cbddf257 after 8.6s:
387565 ~0% {3} r1 = JOIN Attributes::AttrRead#class#f WITH Attributes::AttrRef::accesses_dispred#bff ON FIRST 1 OUTPUT Rhs.2, Lhs.0 'result', Rhs.1
6548632 ~0% {3} r2 = JOIN r1 WITH Function::Function::getName_dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1 'func', Lhs.1 'result', Lhs.2
5640480 ~0% {4} r3 = JOIN r2 WITH Class::Class::getAMethod_dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1, Lhs.1 'result', Lhs.2, Lhs.0 'func'
55660458 ~0% {5} r4 = JOIN r3 WITH Class::Class::getAMethod_dispred#ff ON FIRST 1 OUTPUT Rhs.1, 0, Lhs.1 'result', Lhs.2, Lhs.3 'func'
55621412 ~0% {4} r5 = JOIN r4 WITH AstGenerated::Function_::getArg_dispred#fff ON FIRST 2 OUTPUT Rhs.2, Lhs.2 'result', Lhs.3, Lhs.4 'func'
54467144 ~0% {4} r6 = JOIN r5 WITH DataFlowPublic::ParameterNode::getParameter_dispred#fb_10#join_rhs ON FIRST 1 OUTPUT Lhs.2, Rhs.1, Lhs.1 'result', Lhs.3 'func'
20928 ~0% {2} r7 = JOIN r6 WITH LocalSources::Cached::hasLocalSource#ff ON FIRST 2 OUTPUT Lhs.3 'func', Lhs.2 'result'
return r7
With these changes:
[2021-11-22 11:54:25] (415s) Tuple counts for PoorMansFunctionResolution::getSimpleMethodReferenceWithinClass_helper#fff/3@14db70a8 after 75ms:
388306 ~0% {2} r1 = JOIN Attributes::AttrRead#class#f WITH Attributes::AttrRef::getObject_dispred#bf ON FIRST 1 OUTPUT Rhs.1, Lhs.0 'read'
379420 ~4% {2} r2 = JOIN r1 WITH LocalSources::Cached::hasLocalSource#ff ON FIRST 1 OUTPUT Rhs.1, Lhs.1 'read'
175082 ~0% {2} r3 = JOIN r2 WITH DataFlowPublic::ParameterNode#class#fff ON FIRST 1 OUTPUT Rhs.2, Lhs.1 'read'
175082 ~2% {3} r4 = JOIN r3 WITH Essa::ParameterDefinition::getParameter_dispred#ff ON FIRST 1 OUTPUT 0, Rhs.1, Lhs.1 'read'
166798 ~0% {2} r5 = JOIN r4 WITH AstGenerated::Function_::getArg_dispred#fff_120#join_rhs ON FIRST 2 OUTPUT Rhs.2 'func', Lhs.2 'read'
162096 ~0% {3} r6 = JOIN r5 WITH Class::Class::getAMethod_dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.0 'func', Rhs.1 'cls', Lhs.1 'read'
return r6
[2021-11-22 11:54:25] (415s) Tuple counts for PoorMansFunctionResolution::getSimpleMethodReferenceWithinClass_helper2#ffff/4@2b60f0s9 after 63ms:
162046 ~0% {3} r1 = SCAN PoorMansFunctionResolution::getSimpleMethodReferenceWithinClass_helper#fff OUTPUT In.2 'read', In.0 'func', In.1 'cls'
162046 ~0% {3} r2 = JOIN r1 WITH Attributes::AttrRead#class#f ON FIRST 1 OUTPUT Lhs.1 'func', Lhs.2 'cls', Lhs.0 'read'
162046 ~1% {3} r3 = JOIN r2 WITH py_Functions ON FIRST 1 OUTPUT Lhs.1 'cls', Lhs.2 'read', Lhs.0 'func'
162046 ~0% {3} r4 = JOIN r3 WITH py_Classes ON FIRST 1 OUTPUT Lhs.1 'read', Lhs.2 'func', Lhs.0 'cls'
161935 ~5% {4} r5 = JOIN r4 WITH Attributes::AttrRef::getAttributeName_dispred#bf ON FIRST 1 OUTPUT Rhs.1, Lhs.0 'read', Lhs.1 'func', Lhs.2 'cls'
688526 ~1% {4} r6 = JOIN r5 WITH Function::Function::getName_dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Lhs.2 'func', Lhs.3 'cls', Lhs.1 'read', Rhs.1 'readFunction'
return r6
[2021-11-22 11:54:25] (415s) Tuple counts for PoorMansFunctionResolution::getSimpleMethodReferenceWithinClass#ff/2@f73ae6dq after 58ms:
688526 ~0% {4} r1 = SCAN PoorMansFunctionResolution::getSimpleMethodReferenceWithinClass_helper2#ffff OUTPUT In.1, In.0, In.3 'func', In.2 'result'
688526 ~0% {3} r2 = JOIN r1 WITH Class::Class::getAMethod_dispred#ff ON FIRST 2 OUTPUT Rhs.0, Lhs.2 'func', Lhs.3 'result'
20913 ~0% {2} r3 = JOIN r2 WITH Class::Class::getAMethod_dispred#ff ON FIRST 2 OUTPUT Lhs.1 'func', Lhs.2 'result'
return r3
We need the `pragma[only_bind_into]` in getSimpleMethodReferenceWithinClass_helper2, otherwise the tuple counts would look like, which is needlessly big.
[2021-11-22 17:14:34] (2s) Tuple counts for PoorMansFunctionResolution::getSimpleMethodReferenceWithinClass_helper2#ffff/4@5f0505h7 after 711ms:
13570510 ~3% {2} r1 = JOIN Function::Function::getName_dispred#ff_10#join_rhs WITH Attributes::AttrRef::getAttributeName_dispred#ff_10#join_rhs ON FIRST 1 OUTPUT Rhs.1 'read', Lhs.1 'readFunction'
688526 ~1% {4} r2 = JOIN r1 WITH PoorMansFunctionResolution::getSimpleMethodReferenceWithinClass_helper#fff_201#join_rhs ON FIRST 1 OUTPUT Rhs.1 'func', Rhs.2 'cls', Lhs.0 'read', Lhs.1 'readFunction'
return r2
|
2021-11-22 17:22:39 +01:00 |
|
Rasmus Wriedt Larsen
|
f09f1c4c50
|
Python: Minor refactor in PoorMansFunctionResolution
|
2021-11-22 11:11:29 +01:00 |
|
Rasmus Wriedt Larsen
|
9e097f5430
|
Python: Improve PoorMansFunctionResolution
|
2021-11-15 13:40:19 +01:00 |
|
Rasmus Wriedt Larsen
|
0d4cb1e6ce
|
Python: Add test of PoorMansFunctionResolution
|
2021-11-15 13:34:39 +01:00 |
|
Rasmus Wriedt Larsen
|
6eb4525ab2
|
Python: Model wsgiref.simple_server applications
|
2021-11-15 13:34:39 +01:00 |
|
Rasmus Wriedt Larsen
|
e812029c03
|
Python: Add test for wsgiref.simple_server
|
2021-11-15 13:34:38 +01:00 |
|
yoff
|
9f614b1d98
|
Merge pull request #7016 from RasmusWL/django-rest-framework
Python: Model Django REST framework
|
2021-11-12 14:27:56 +01:00 |
|
Rasmus Wriedt Larsen
|
491f72bb2a
|
Python: Adjust generated code to be more familiar
|
2021-11-12 13:30:03 +01:00 |
|
Rasmus Wriedt Larsen
|
de69e4c645
|
Python: Expand on SubclassFinder implementation note
|
2021-11-12 13:29:03 +01:00 |
|
Rasmus Wriedt Larsen
|
f7b53321b9
|
Python: Remove copy-pasted comment
|
2021-11-12 13:19:20 +01:00 |
|
Taus
|
55ea715ce9
|
Merge pull request #7033 from RasmusWL/flask-admin
|
2021-11-12 12:18:56 +01:00 |
|
Rasmus Wriedt Larsen
|
860b1a5cc3
|
Python: Other minor QLDoc adjustment
|
2021-11-12 11:46:45 +01:00 |
|
Rasmus Wriedt Larsen
|
99081ea7e0
|
Python: Minor adjustment in QLDoc
|
2021-11-12 11:42:36 +01:00 |
|
Rasmus Wriedt Larsen
|
5e4b866f2b
|
Python: Model rest_framework.exceptions.APIException
|
2021-11-12 11:37:54 +01:00 |
|
Rasmus Wriedt Larsen
|
62e58b534c
|
Python: SubclassFinder: reorder + comment
|
2021-11-12 11:11:13 +01:00 |
|
Rasmus Wriedt Larsen
|
f48ecb1dc8
|
Python: Apply suggestions from code review
Co-authored-by: yoff <lerchedahl@gmail.com>
|
2021-11-12 10:57:56 +01:00 |
|
Tom Hvitved
|
b5cf4c2f82
|
Merge pull request #7111 from michaelnebel/csharp-move-printast
Csharp move PrintAst query to test directory.
|
2021-11-12 09:19:13 +01:00 |
|
Rasmus Wriedt Larsen
|
06cae3dac2
|
Merge pull request #7104 from yoff/python/model-aiomysql
Python: model aiomysql
|
2021-11-11 16:58:01 +01:00 |
|
Tom Hvitved
|
004144bbef
|
Merge pull request #7028 from hvitved/ruby/api-graphs-prune
Ruby: Prune nodes before computing `trackUseNode`
|
2021-11-11 15:57:21 +01:00 |
|
Michael Nebel
|
9ea320c53c
|
Update all PrintAst.qlref to point to new location of PrintAst.ql
|
2021-11-11 15:19:15 +01:00 |
|
Erik Krogh Kristensen
|
e09c12430d
|
Merge pull request #7105 from erik-krogh/flagJqueryUI
JS: have the aliasPropertyPresenceStep step over extend calls
|
2021-11-11 14:05:11 +01:00 |
|
CodeQL CI
|
34cc61e51f
|
Merge pull request #7083 from asgerf/js/type-track-object-literals-with-methods
Approved by erik-krogh
|
2021-11-11 04:35:55 -08:00 |
|
Michael Nebel
|
5a4557f588
|
Move PrintAst.ql and update import statement
|
2021-11-11 13:27:12 +01:00 |
|
Rasmus Lerchedahl Petersen
|
e2a2a42d59
|
Python: Fix api references
|
2021-11-11 13:20:57 +01:00 |
|
Erik Krogh Kristensen
|
b513033e0f
|
Merge pull request #7021 from erik-krogh/cwe326
JS: Add insufficient key size query
|
2021-11-11 12:17:04 +01:00 |
|
Erik Krogh Kristensen
|
891694b50a
|
Merge pull request #5908 from erik-krogh/protoLib
JS: Add library input as source to js/prototype-polluting-assignment
|
2021-11-11 12:04:05 +01:00 |
|
Erik Krogh Kristensen
|
140a70f9df
|
Merge pull request #7029 from erik-krogh/cwe384
JS: add js/session-fixation query
|
2021-11-11 11:59:52 +01:00 |
|
Erik Krogh Kristensen
|
0bf055fbec
|
Merge pull request #7103 from erik-krogh/add-cwe532-to-cleartextlogging
JS: add CWE-532 to the js/clear-text-logging query
|
2021-11-11 11:59:16 +01:00 |
|
Asger F
|
7d8284a41c
|
Apply suggestions from code review
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
|
2021-11-11 10:42:49 +01:00 |
|
Mathias Vorreiter Pedersen
|
bf9b8cfff0
|
Merge pull request #6947 from ihsinme/ihsinme-patch-077
CPP: Add query for CWE-377 Insecure Temporary File
|
2021-11-11 09:02:04 +00:00 |
|
Erik Krogh Kristensen
|
5d901ef728
|
move extend aliasing to getAnAliasedSourceNode
|
2021-11-10 18:08:50 +01:00 |
|
Erik Krogh Kristensen
|
2d907f825e
|
have the aliasPropertyPresenceStep step over extend calls
|
2021-11-10 16:26:00 +01:00 |
|
Mathias Vorreiter Pedersen
|
e0b876d2f6
|
Merge pull request #7102 from MathiasVP/fix-map-test
C++: Fix a testcase
|
2021-11-10 13:51:10 +00:00 |
|
yoff
|
d23a920ed4
|
Merge branch 'main' into python/model-aiomysql
|
2021-11-10 14:32:36 +01:00 |
|
Rasmus Lerchedahl Petersen
|
57e7bfbdba
|
Python: model aiomysql
|
2021-11-10 14:29:39 +01:00 |
|
Rasmus Lerchedahl Petersen
|
047cff0749
|
Python: test aiomysql
|
2021-11-10 14:24:45 +01:00 |
|
Mathias Vorreiter Pedersen
|
ccdaf49464
|
C++: Fix the same bug in the test for ordered maps.
|
2021-11-10 13:24:27 +00:00 |
|
Erik Krogh Kristensen
|
55434653f5
|
add CWE-532 to the clear-text-logging query
|
2021-11-10 14:15:49 +01:00 |
|
Mathias Vorreiter Pedersen
|
86d78b34aa
|
C++: Use the correct variable in the 'test'.
|
2021-11-10 13:04:48 +00:00 |
|
Rasmus Wriedt Larsen
|
de926dc2a1
|
Merge pull request #7085 from yoff/python/model-aiopg
Python: model aiopg
|
2021-11-10 13:10:30 +01:00 |
|
Benjamin Muskalla
|
0f086056a1
|
Merge pull request #7100 from bmuskalla/bmuskalla/ioAsFile
Java: Extract Commons IO into seperate file
|
2021-11-10 12:04:12 +01:00 |
|
Rasmus Lerchedahl Petersen
|
92a7114b72
|
Python: Add API references
|
2021-11-10 11:06:58 +01:00 |
|
Rasmus Lerchedahl Petersen
|
c6d285dd2a
|
Python: Fix test
|
2021-11-10 11:06:45 +01:00 |
|
yoff
|
a856395d56
|
Apply suggestions from code review
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
|
2021-11-10 10:51:40 +01:00 |
|
Benjamin Muskalla
|
f9fa22c14d
|
Removed unused import
|
2021-11-10 10:21:54 +01:00 |
|
Benjamin Muskalla
|
1a751608de
|
Extract Commons IO into seperate file
|
2021-11-10 10:15:27 +01:00 |
|
Tony Torralba
|
4da1dce811
|
Merge pull request #7099 from github/workflow/coverage/update
Update CSV framework coverage reports
|
2021-11-10 08:54:11 +01:00 |
|
Erik Krogh Kristensen
|
ab5d9459c7
|
Update javascript/ql/src/Security/CWE-384/SessionFixation.qhelp
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
|
2021-11-10 08:24:46 +01:00 |
|
ihsinme
|
a0448240aa
|
Update InsecureTemporaryFile.expected
|
2021-11-10 09:23:51 +03:00 |
|