Avoid an out-of-bounds array access.
commitb7ce53cb0a307330a3dfb139a95147c6d840f2a7
authorAdam Sampson <ats@offog.org>
Sat, 4 Apr 2015 21:19:54 +0000 (4 22:19 +0100)
committerAdam Sampson <ats@offog.org>
Sat, 4 Apr 2015 21:19:54 +0000 (4 22:19 +0100)
treebc87000040bb1a0f8330572b3d3aedfd8a378cfe
parent4a8cf0bb0f4a6adae68463cc4125fa5e5313deb5
Avoid an out-of-bounds array access.

When harmonics reaches 0, "bandlimited [N - j] = 0" accesses beyond the
bounds of the array. bandlimited[0] is initialised before the loop, so
both loops should be skipped in this case.

(Found with -fsanitize=address.)
wavebank.c