Skip to content

possible integer overflow in ByteBufferPoolImpl.reAllocate #60

@avl42

Description

@avl42

orbmain/src/main/java/com/sun/corba/ee/impl/transport/ByteBufferPoolImpl.java

The "while"-loop near start of ByteBufferPoolImpl.reAllocate() doubling the size until it is large enough may turn into an infinite loop, if the minimumSize parameter is ever more than 1 GB. Probably not the most common situation, but if it ever happened, then going into a tight busy loop surely isn't what anyone would want.

Not sure, how to best solve it, though. Maybe also check for size < 0, or use a long-typed helper variable just within the loop ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions