Skip to content

INTEGER_OVERFLOW in src/hdr_histogram.c #118

@VoroninArtemii

Description

@VoroninArtemii

The array elements are summed in function void hdr_reset_internal_counters(struct hdr_histogram* h). However, both the array elements and the summation variable have the same int64_t data type:

int64_t observed_total_count = 0;

int64_t count_at_index;

And then summation:
observed_total_count += count_at_index;

Also, no overflow checks were found in the function itself.

Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.

Author A. Voronin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions