Change History (6)
follow-up: 2 comment:1 by , 11 months ago
comment:2 by , 11 months ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
Replying to Xi Ruoyao:
Annoyingly the test suite has even more hazard now. Some tests seem relying on the environment
PSUTIL_DEBUGto be set, and one test requires the colorama module.
Let me deal with them.
comment:4 by , 11 months ago
Enhancements
- 2667_: enforce
clang-formaton 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_scalls withstr_format(). Replacestrlcat/strlcpywith safestr_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 andsprintf_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 , 11 months ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Fixed at r12.4-441-gd57b217b3d.
Note:
See TracTickets
for help on using tickets.

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