[Midnightbsd-cvs] [MidnightBSD/src] 284f83: Harden ohash allocation arithmetic
Lucas Holt
noreply at github.com
Thu Jun 11 11:47:51 EDT 2026
Branch: refs/heads/codex/update-libc-ohash
Home: https://github.com/MidnightBSD/src
Commit: 284f83c810d7a54aa348f117ac0c5a3a44b0ee04
https://github.com/MidnightBSD/src/commit/284f83c810d7a54aa348f117ac0c5a3a44b0ee04
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-06-11 (Thu, 11 Jun 2026)
Changed paths:
M lib/libc/ohash/ohash.c
M lib/libc/ohash/ohash_compat.c
Log Message:
-----------
Harden ohash allocation arithmetic
Guard entry-size and table-size calculations in both the new ohash implementation and the FBSD_1.0 compatibility layer. Keep the maximum table size as a power of two so probing invariants remain intact.
AI-Assisted-by: OpenAI Codex (GPT-5)
Signed-off-by: Lucas Holt <luke at foolishgames.com>
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications
More information about the Midnightbsd-cvs
mailing list