Re: Bash 5.3-devel getopts reads 1 byte past the end of a buffer when called twice

2025-07-17 Thread Chet Ramey
On 7/17/25 12:52 AM, Nathan Mills wrote: Bash Version: 5.3-devel Patch Level: 0 Release Status: devel-a23c863e Clang: ``` clang version 19.1.7 Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /nix/store/x6rsdc4s0f1j9bn1cx2h1l5fj8765ykw-clang-19.1.7/bin ``` NixOS: ``` nixos-ve

Bash 5.3-devel getopts reads 1 byte past the end of a buffer when called twice

2025-07-16 Thread Nathan Mills
From: the.true.nathan.mi...@gmail.com To: bug-bash@gnu.org Subject: Getopts crashes when passing several zeroes. Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 uname output: Linux nixos 6.6.87.2-microsoft-s