diff options
author | Warner Losh <imp@FreeBSD.org> | 2019-06-02 04:23:56 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2019-06-02 04:23:56 +0000 |
commit | 03ee4d05f1d963d60451e04ce505e4da116300db (patch) | |
tree | 9dcabc6cffafcb6b8195148feb519d575b0bf6ac /bugs-fixed/fs-overflow.awk | |
parent | 3a4488f93f2dc8fe9de757a418b74aa0aa4f9ed1 (diff) |
Notes
Diffstat (limited to 'bugs-fixed/fs-overflow.awk')
-rw-r--r-- | bugs-fixed/fs-overflow.awk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bugs-fixed/fs-overflow.awk b/bugs-fixed/fs-overflow.awk new file mode 100644 index 000000000000..be10f5a46f0d --- /dev/null +++ b/bugs-fixed/fs-overflow.awk @@ -0,0 +1,13 @@ +function foo() { + a = ""; + for (i = 0; i < 10000; i++) { + a = a "c"; + } + return a; +} + +BEGIN { + FS = foo(); + $0="foo"; + print $1; +} |