[Midnightbsd-cvs] [MidnightBSD/src] d35ef2: ps: harden COLUMNS parsing and malloc checks

Lucas Holt noreply at github.com
Fri May 1 00:55:15 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: d35ef2f349a2ebe22e0d68075d74c2595241240a
      https://github.com/MidnightBSD/src/commit/d35ef2f349a2ebe22e0d68075d74c2595241240a
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-05-01 (Fri, 01 May 2026)

  Changed paths:
    M bin/ps/ps.c

  Log Message:
  -----------
  ps: harden COLUMNS parsing and malloc checks

Parse COLUMNS with strtol() and validate bounds, and add NULL checks for descendant_sort() prefix bitmap allocation.

AI-Assisted-by: GPT-5.2 (Codex CLI)
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