Message ID | CAOKKkHc=bt4p1d4hMzFbQeE14mZJJ7d1REpJ-D_BQD02re1Pdw@mail.gmail.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Herbert Xu |
Headers | show |
Series | PATCH] expand: Add ifsfree to expand to fix a logic error that causes a buffer over-read | expand |
--- a/src/expand.c +++ b/src/expand.c @@ -859,6 +859,7 @@ if (discard) return -1; +ifsfree(); sh_error("Bad substitution"); } @@ -1739,6 +1740,7 @@ } else msg = umsg; } +ifsfree(); sh_error("%.*s: %s%s", end - var - 1, var, msg, tail); } ==========================