Opened 11 months ago

Closed 11 months ago

Last modified 8 months ago

#22339 closed enhancement (fixed)

psutil-7.1.3 (Python module)

Reported by: Bruce Dubbs Owned by: Xi Ruoyao
Priority: normal Milestone: 13.0
Component: BOOK Version: git
Severity: medium Keywords:
Cc:

Description

New point version.

Change History (6)

comment:1 by Xi Ruoyao, 11 months ago

Annoyingly the test suite has even more hazard now. Some tests seem relying on the environment PSUTIL_DEBUG to be set, and one test requires the colorama module.

in reply to:  1 comment:2 by Xi Ruoyao, 11 months ago

Owner: changed from blfs-book to Xi Ruoyao
Status: new → assigned

Replying to Xi Ruoyao:

Annoyingly the test suite has even more hazard now. Some tests seem relying on the environment PSUTIL_DEBUG to be set, and one test requires the colorama module.

Let me deal with them.

comment:3 by Xi Ruoyao, 11 months ago

The good thing is they've included the change from our sed now.

comment:4 by Xi Ruoyao, 11 months ago

Enhancements

  • 2667_: enforce clang-format on all C and header files. It is now the mandatory formatting style for all C sources.
  • 2672_, [macOS], [BSD]: increase the chances to recognize zombie processes and raise the appropriate exception (ZombieProcess_).
  • 2676_, 2678_: replace unsafe sprintf / snprintf / sprintf_s calls with str_format(). Replace strlcat / strlcpy with safe str_copy / str_append. This unifies string handling across platforms and reduces unsafe usage of standard string functions, improving robustness.

Bug fixes

  • 2674_, [Windows]: disk_usage()_ could truncate values on 32-bit platforms, potentially reporting incorrect total/free/used space for drives larger than 4GB.
  • 2675_, [macOS]: Process.status()_ incorrectly returns "running" for 99% of the processes.
  • 2677_, [Windows]: fix MAC address string construction in net_if_addrs()_. Previously, the MAC address buffer was incorrectly updated using a fixed increment and sprintf_s, which could overflow or misformat the string if the MAC length or formatting changed. Also, the final '\n' was inserted unnecessarily.

comment:5 by Xi Ruoyao, 11 months ago

Resolution: → fixed
Status: assigned → closed

comment:6 by Bruce Dubbs, 8 months ago

Milestone: 12.5 → 13.0

Milestone renamed

Note: See TracTickets for help on using tickets.