bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash printf should diagnose integer overflow


From: Chet Ramey
Subject: Re: Bash printf should diagnose integer overflow
Date: Wed, 13 Mar 2024 14:13:13 -0400
User-agent: Mozilla Thunderbird

On 3/12/24 3:49 PM, Paul Eggert wrote:

Bash Version: 5.3
Patch Level: 26
Release Status: devel

Description:
     Commands like "printf '%10000000000000000000000000000s' ''"
     silently ignore width and precision.  They should report the
     integer overflow before continuing with a lesser width or
    precision.

Thanks for the report. The most appropriate fix for this particular issue
is to display an error message if printf returns < 0, instead of
suppressing it unless the -v option has been set.

I'll look at the rest of your changes.

Chet

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]