Open hksdpc255 opened 1 month ago
It may be caused by Issue#17021.
Have you tried evaluation the isSource
predicate using the "quick eval" feature of the CodeQL for VScode extension? If that doesn't include endpoints = [self.manager]
then there is something wrong with the isSource
predicate. If it is included then most likely some flow step is missing, possibly due to a failure to resolve a method. A trick you can use to debug is to implement isSource
to only select an expression in endpoints = [self.manager]
and define predicate isSink() { any() }
. That should allow you to explore all the dataflow going out of that single source and determine where flow gets "stuck".
A trick you can use to debug is to implement isSource to only select an expression in endpoints = [self.manager] and define predicate isSink() { any() }.
The flow stops at endpoints
in self.conn.create_consumer(self.topic, endpoints)
.
source | sink |
---|---|
[self.manager] |
[self.manager] |
[self.manager] |
endpoints in endpoints = [self.manager] |
[self.manager] |
endpoints in self.conn.create_consumer(self.topic, endpoints) |
So, is there any plan to fix the bug?
Python code from openstack
CodeQL
Output
endpoints
in line 19endpoints
in line 30endpoints
in line 30endpoints
in line 30endpoints
in line 84endpoints
in line 30endpoints
in line 87endpoints
in line 30