Skip to content

Commit 16e2b8f

Browse files
authored
Merge pull request #963 from Bidaya0/bugfix/tag-sink-fix
bugfix/tag-sink-fix
2 parents 2844ccb + 183b2f0 commit 16e2b8f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

dongtai_common/engine/vul_engine.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,14 @@ def find_other_branch_v2(self, index, size, current_link, source_hash):
206206
(sub_target_rpc_hash and sub_target_rpc_hash & source_hash)
207207
) and check_service_propagate_method_state(sub_method):
208208
logger.info(f"stisfied {sub_method}")
209-
current_link.append(
210-
self.copy_method(sub_method, propagator=True))
211-
source_hash = source_hash | set(sub_method.get('sourceHash'))
209+
if sub_method.get('source'):
210+
current_link.append(
211+
self.copy_method(sub_method, source=True))
212+
else:
213+
current_link.append(
214+
self.copy_method(sub_method, propagator=True))
215+
source_hash = source_hash | set(
216+
sub_method.get('sourceHash'))
212217
else:
213218
logger.debug("not stisfied {sub_method}")
214219
return current_link

0 commit comments

Comments
 (0)