[jboss-jira] [JBoss JIRA] (ELY-611) Unintentional integer overflow in LongNameSetPermissionCollection

Ondrej Lukas (JIRA) issues at jboss.org
Fri Jul 29 06:52:00 EDT 2016


Ondrej Lukas created ELY-611:
--------------------------------

             Summary: Unintentional integer overflow in LongNameSetPermissionCollection
                 Key: ELY-611
                 URL: https://issues.jboss.org/browse/ELY-611
             Project: WildFly Elytron
          Issue Type: Bug
    Affects Versions: 1.1.0.Beta7
            Reporter: Ondrej Lukas
            Assignee: Darran Lofthouse


There are potentially overflowing expressions in org.wildfly.security.permission.LongNameSetPermissionCollection in {{getBitsForName}} method. Expressions {{1 << nameEnumeration.size()}} and {{1 << nameEnumeration.indexOf(name)}} are evaluated as integer but assigned to {{bits}} variable which is long. It can be avoided by casting {{1}} to long.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list