Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add a missing break statement #100

Conversation

munahaf
Copy link

@munahaf munahaf commented Sep 18, 2023

In file: DocumentToProtoConverter.java, class: DocumentToProtoConverter, the body of a method schemaToField has a case statement that is not terminated by a break. I suggested that a break statement be introduced to terminate the case statement.

Sponsorship and Support:

This work is done by the security researchers from OpenRefactory and is supported by the Open Source Security Foundation (OpenSSF): Project Alpha-Omega. Alpha-Omega is a project partnering with open source software project maintainers to systematically find new, as-yet-undiscovered vulnerabilities in open source code - and get them fixed – to improve global software supply chain security.

The bug is found by running the Intelligent Code Repair (iCR) tool by OpenRefactory and then manually triaging the results.

@munahaf munahaf requested review from a team as code owners September 18, 2023 10:17
@google-cla
Copy link

google-cla bot commented Sep 18, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@vchudnov-g vchudnov-g changed the title Add a missing break statement fix: add a missing break statement Nov 6, 2023
Copy link
Collaborator

@vchudnov-g vchudnov-g left a comment

Choose a reason for hiding this comment

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

Thanks! I added this as part of #131, where I noticed it, too.

@vchudnov-g
Copy link
Collaborator

Done in #131.

@vchudnov-g vchudnov-g closed this Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants