Skip to content

tanh_sinh quadrature underflows integers #898

@gphlipot13

Description

@gphlipot13

Description

It is possible for some integrals (and some scalar types), the tanh_sinh quadrature method underflows an unsigned integer, resulting in undefined behavior.

Steps to reproduce

See an example where the https://godbolt.org/z/5seaesETo

The integer underflow occurs on this line when max_left_position is 0.

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