Skip to content

ext2fs: Regular files are incorrectly reported as fifo's.#34

Closed
holovati wants to merge 1 commit intoNetBSD:trunkfrom
holovati:patch-1
Closed

ext2fs: Regular files are incorrectly reported as fifo's.#34
holovati wants to merge 1 commit intoNetBSD:trunkfrom
holovati:patch-1

Conversation

@holovati
Copy link
Copy Markdown

@holovati holovati commented Mar 9, 2024

Fixes kern/58018

@holovati holovati changed the title Regular files are incorrectly reported as fifo's. ext2fs: Regular files are incorrectly reported as fifo's. Mar 9, 2024
@holovati
Copy link
Copy Markdown
Author

aa5b63a

@holovati holovati closed this Mar 11, 2024
@holovati holovati deleted the patch-1 branch March 11, 2024 10:41
netbsd-srcmastr pushed a commit that referenced this pull request Sep 24, 2025
	usr.bin/elf2ecoff/elf2ecoff.c: revision 1.37
	usr.bin/elf2ecoff/elf2ecoff.c: revision 1.38

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@.
Tested "build.sh -U -m pmax release" on ubuntu 24.04.2:
---
% ./nbmips-elf2ecoff netboot.elf netboot
  combining PH 0 type 1 flags 0x7 with data, ndata = 73568, nbss =1392
  skipping PH 1 type 0x70000000 flags 0x4
  skipping PH 2 type 0x70000003 flags 0x4
wrote 20 byte file header.
wrote 56 byte a.out header.
wrote 240 bytes of section headers.
wrote 4 byte pad.
writing 73568 bytes...
writing syms at offset 0x12100
2605 (0xa2d) bytes ELF string table
2705 (0xa91) bytes required for ECOFF string table
2705 (0xa91) bytes used for ECOFF string table
writing symhdr for 258 entries at offset 0x120a0
ECOFF symhdr: symhdr 60, strsize a91, symsize 1020
---

s/estimate/compute/
netbsd-srcmastr pushed a commit that referenced this pull request Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant