fix issue with invalidating pointer to last procsub; fix boundary issues with small reallocs

This commit is contained in:
Chet Ramey
2024-07-26 09:30:30 -04:00
parent 6c70309275
commit d5ef283cbd
8 changed files with 59 additions and 8 deletions
+1 -1
View File
@@ -1638,7 +1638,7 @@ open_shell_script (char *script_name)
GET_ARRAY_FROM_VAR ("BASH_SOURCE", bash_source_v, bash_source_a);
GET_ARRAY_FROM_VAR ("BASH_LINENO", bash_lineno_v, bash_lineno_a);
array_push (bash_source_a, filename);
push_source (bash_source_a, filename);
if (bash_lineno_a)
{
t = itos (executing_line_number ());