Correct odd loop in ecoff lookup_line
authorAlan Modra <amodra@gmail.com>
Mon, 6 Mar 2023 00:13:16 +0000 (10:43 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 6 Mar 2023 02:41:22 +0000 (13:11 +1030)
commitd919194f08518c8bb9904f76c1077c4ac2037475
treeb2da32a099f77e80674cad68b145cfcd02457c29
parentffdfc835ddd5e3eb7254aef9f003020d968be5b7
Correct odd loop in ecoff lookup_line

I can't see why this really odd looking loop was written the way it
was in commit a877f5917f90, but it can result in a buffer overrun.

* ecofflink.c (lookup_line): Don't swap in pdr at pdr_end.
bfd/ecofflink.c