Skip to content

bug: "missed_samples" integer overflow possible #206

Open
@dalehamel

Description

@dalehamel
1) Failure:
StackProfTest#test_gc [/home/runner/work/stackprof/stackprof/test/test_stackprof.rb:248]:
Expected 18446744073709551615 to be <= 25.

Since this value is computed via subtraction, it looks like it is subtracting a larger subtrahend than minuend with a storage class that does not support negatives, and thus it appears as this massive positive integer approximately equal to max int, rather than a small positive value as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions