Re: [PATCH] adjust_shell_level: check for SHLVL bind failure
Chet Ramey <[email protected]> Thu, 14 May 2026 14:53:17 -0400
| Newsgroups | gmane.comp.shells.bash.bugs |
|---|---|
| Organization | ITS, Case Western Reserve University |
| Message-ID | <[email protected]> |
On 5/13/26 5:01 PM, Grisha Levit wrote: > $ bash -c 'unset X; declare -n SHLVL=X[-1]; /' > ... > SUMMARY: AddressSanitizer: SEGV variables.c:892 in adjust_shell_level Thanks for the report and patch. -- ``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/
OpenPGP_signature.asc
(application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE----- wmMEABEIACMWIQR8ATX7CIqvbGbGULm7WGnwZOp0qwUCagYaHQUDAAAAAAAKCRC7WGnwZOp0q2Kj AKCBO3EfmifjWO9bG9iPxP+UTVM8hACeMedXX0mmByedHNJqZLzq9y6YpL0= =Uo4v -----END PGP SIGNATURE-----