Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Possible bug in source code (CWE-398) #36

Description

Hello!

We've checked your code with AppChecker static analyzer and found possible bug:

https://github.com/Microsoft/vsminecraft/blob/19ae7b5744bc4bb0bb890303b288af2b193f5ca4/minecraftpkg/MekanismModSample/src/main/java/mekanism/common/multipart/MultipartTransmitter.java#L95

            if(TransmissionType.checkTransmissionType(transmitter, getTransmissionType()));
            {
                return ((IGridTransmitter<A, N>)transmitter).getTransmitterNetwork();
            }

return doesn't refer to if-statement. if-statement block is empty;

It could be not a bug, but in the same file there is correct code:

            if(TransmissionType.checkTransmissionType(transmitter, getTransmissionType()))
            {
                return sideCoord;
            }

Possible defect was found by Echelon Team with AppChecker static analyzer

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions