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
@@ -245,7 +245,7 @@ file_error_and_exit:
GET_ARRAY_FROM_VAR ("BASH_ARGC", bash_argc_v, bash_argc_a);
# endif
array_push (bash_source_a, (char *)filename);
push_source (bash_source_a, (char *)filename);
t = itos (executing_line_number ());
array_push (bash_lineno_a, t);
free (t);