Skip to content

Potential issue for an integer overflow #39

Description

@waooog

Hi,

Our tool found the following suspicious code in:
src/org/swiftp/CmdLIST.java

In Line 38:
public final static long MS_IN_SIX_MONTHS = 6 * 30 * 24 * 60 * 60 * 1000;

Could this be as follow to avoid integer overflow?:

public final static long MS_IN_SIX_MONTHS = 6 * 30 * 24 * 60 * 60 * 1000L;

This might be a trivial thing but I wanted to report just in case.

Thanks!

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