Skip to content

[Java] Data flow through an object #17069

Answered by mbg
sudeep-hypredge asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sudeep-hypredge 👋🏻

Thanks for the question! For reference, I have pasted the part of the example code you seem to refer to below:

CopyObjectRequest copyReq = CopyObjectRequest.builder()
  .sourceBucket(fromBucket)
  .sourceKey(objectKey)
  .destinationBucket(toBucket)
  .destinationKey(objectKey)
  .build();

In order for CodeQL to track how data flows through methods from a library, we need to understand how inputs to a method relate to its outputs. For example, CodeQL needs to know that destinationKey mutates the object it is called on with objectKey and returns the resulting object (as opposed to e.g. a new object, or the initial object). We have a collection of models which summari…

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@sudeep-hypredge
Comment options

@owen-mc
Comment options

@owen-mc
Comment options

@sudeepd
Comment options

@owen-mc
Comment options

Answer selected by sudeep-hypredge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants