Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/elf2ecoff



In article <20250912192047.2C5CCF99C%cvs.NetBSD.org@localhost>,
Izumi Tsutsui <source-changes-d%NetBSD.org@localhost> wrote:
>-=-=-=-=-=-
>
>Module Name:	src
>Committed By:	tsutsui
>Date:		Fri Sep 12 19:20:47 UTC 2025
>
>Modified Files:
>	src/usr.bin/elf2ecoff: elf2ecoff.c
>
>Log Message:
>elf2ecoff: fix PR port-pmax/59234: "buffer overflow detected" problem.
>
>Explicitly calculate a size of the target ECOFF string table before
>copying symbol strings, as suggested by mlelstv@.

Are we estimating here, or calculating the maximum size needed?
I don't like the word estimate, because it can mean that the value
computed might come both under or over.

christos



Home | Main Index | Thread Index | Old Index