[Midnightbsd-cvs] [MidnightBSD/src] 3fddbd: Update libc ohash ABI (#375)

Lucas Holt noreply at github.com
Thu Jun 11 12:09:40 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: 3fddbd79c1bbc9cba858e729749fffa57eadb6e2
      https://github.com/MidnightBSD/src/commit/3fddbd79c1bbc9cba858e729749fffa57eadb6e2
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-06-11 (Thu, 11 Jun 2026)

  Changed paths:
    M include/ohash.h
    M lib/libc/Versions.def
    M lib/libc/ohash/Makefile.inc
    M lib/libc/ohash/Symbol.map
    A lib/libc/ohash/ohash.c
    A lib/libc/ohash/ohash_compat.c

  Log Message:
  -----------
  Update libc ohash ABI (#375)

* Update libc ohash ABI

Import the current OpenBSD ohash implementation for the default libc symbols and keep FBSD_1.0 compatibility wrappers for old callers using the halloc/hfree callback contract.

AI-Assisted-by: OpenAI Codex (GPT-5)
Signed-off-by: Lucas Holt <luke at foolishgames.com>

* 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>

---------

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