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

Coverity Scan - Identical code for different branches #531

Open
raghvendra-dixit opened this issue Aug 2, 2022 · 0 comments
Open

Coverity Scan - Identical code for different branches #531

raghvendra-dixit opened this issue Aug 2, 2022 · 0 comments

Comments

@raghvendra-dixit
Copy link

File: https://github.com/streadway/amqp/blob/master/read.go
Details:

  1. The condition is redundant
    In github.​com/streadway/amqp.​readFloat32(io.​Reader): The same code is executed regardless of the condition (CWE-398)
  2. The condition is redundant
    In github.​com/streadway/amqp.​readFloat64(io.​Reader): The same code is executed regardless of the condition (CWE-398)
    Screenshots:

image

2.

image

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

No branches or pull requests

1 participant