On 12/19/25 6:45 PM, anushakov--- via Bug reports for the GNU Bourne Again SHell wrote:

    Expected Behaviour
    Any messages without ubsan ERROR.

    Actual Behaviour

    expr.c:954:12: runtime error: signed integer overflow: 4294967296 *
    4294967296 cannot be represented in type 'intmax_t' (aka 'long')
        #0 0x617b39d06378 in ipow /upstream/bash/expr.c:954:12

Bash expression evaluation performs integer arithmetic without checking for
overflow. It's documented.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to