jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Sonar Plugins
  • Sonar Plugins
  • SONARPLUGINS-1156

Possible integer overflow

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: CUTOFF-0.1
  • Fix Version/s: CUTOFF-0.1.1
  • Component/s: Cutoff Date
  • Labels:
    None
  • Number of attachments :
    0

Description

Following piece of code might lead to incorrect results, because of integer overflow ( eg. for property 100 ) :

CutoffFilter.java
cutoffDate = new Date(System.currentTimeMillis() - Integer.parseInt(property) * 24 * 60 * 60 * 1000);

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
No work has yet been logged on this issue.

People

  • Assignee:
    Evgeny Mandrikov
    Reporter:
    Evgeny Mandrikov
Vote (0)
Watch (0)

Dates

  • Created:
    07/May/11 2:15 PM
    Updated:
    03/Jan/12 5:25 AM
    Resolved:
    07/May/11 2:18 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.