[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/
- Bash printf should diagnose integer overflow, Paul Eggert, 2024/03/12
- Re: Bash printf should diagnose integer overflow,
Chet Ramey <=
- Re: Bash printf should diagnose integer overflow, Paul Eggert, 2024/03/13
- Re: Bash printf should diagnose integer overflow, Chet Ramey, 2024/03/18
- Re: Bash printf should diagnose integer overflow, alex xmb sw ratchev, 2024/03/18
- Re: Bash printf should diagnose integer overflow, Paul Eggert, 2024/03/18
- Re: Bash printf should diagnose integer overflow, Chet Ramey, 2024/03/18
- Re: Bash printf should diagnose integer overflow, Chet Ramey, 2024/03/18
- Re: Bash printf should diagnose integer overflow, Paul Eggert, 2024/03/19
- Re: Bash printf should diagnose integer overflow, Chet Ramey, 2024/03/21
- Re: Bash printf should diagnose integer overflow, Paul Eggert, 2024/03/22
- Re: Bash printf should diagnose integer overflow, Chet Ramey, 2024/03/22