Skip to content

Attempt to add with overflow: producer.rs line 234 #179

@DataFrogman

Description

@DataFrogman

Describe the bug

I have run into an integer overflow error in producer.rs, it appears that the 'val' created on line 232 should be set to usize rather than determined by the compiler.

Reproduction steps

  1. Create a queue with a max size of 25GB
  2. Async create producers (max 16 at a time)
  3. Push 50,000+ messages per producer
  4. When queue length is greater than 300,000 eventually the error will occur

Expected behavior

Integers to be allocated of the maximum necessary size, potentially at usize maximum.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions