Skip to content

Conversation

@calumgrant
Copy link
Contributor

Pull Request checklist

All query authors

Internal query authors only

  • Autofixes generated based on these changes are valid, only needed if this PR makes significant changes to .ql, .qll, or .qhelp files. See the documentation (internal access required).
  • Changes are validated at scale (internal access required).
  • Adding a new query? Consider also adding the query to autofix.

@github-actions github-actions bot added the C++ label Dec 5, 2024
@calumgrant
Copy link
Contributor Author

DCA output looks good, showing the 8 FPs removed.

@calumgrant calumgrant marked this pull request as ready for review December 6, 2024 09:29
@calumgrant calumgrant requested a review from a team as a code owner December 6, 2024 09:29
destSize = max(getBufferSize(bw.getDest(), _)) and
bw.getExplicitLimit() > destSize // but it's larger than the destination
bw.getExplicitLimit() > destSize and // but it's larger than the destination
not bw.getDest().getUnderlyingType().stripType() instanceof ErroneousType // destSize may be incorrect
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I believe stripType takes care of that already.

@calumgrant
Copy link
Contributor Author

I'll do another DCA once everything else looks good. (The custom suite ran just the query that changed.)

@jketema
Copy link
Contributor

jketema commented Dec 6, 2024

This is now basically waiting for a more complete DCA run.

@jketema jketema merged commit ee8ce1c into main Dec 6, 2024
15 checks passed
@jketema jketema deleted the calumgrant/bmn/badly-bounded-write branch December 6, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants