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

@AppChecker

Description

@AppChecker

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

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