aboutsummaryrefslogtreecommitdiff
path: root/bugs-fixed/fs-overflow.awk
blob: be10f5a46f0d13ce2c08d7d58306c2642a241829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function foo() {
    a = "";
    for (i = 0; i < 10000; i++) {
        a = a "c";
    }
    return a;
}

BEGIN {
    FS = foo();
    $0="foo";
    print $1;
}