Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 455 by
amo...@google.com: there is a small integer overflow bug
in _psutil_linux.c
http://code.google.com/p/psutil/issues/detail?id=455
What steps will reproduce the problem?
In [2]: psutil.RLIM_INFINITY
Out[2]: -1
What is the expected output?
In [2]: psutil.RLIM_INFINITY
Out[2]: 18446744073709551615L
What version of psutil are you using? What Python version?
1.2.1
On what operating system? Is it 32bit or 64bit version?
Ubuntu 64bit
Please provide any additional information below.
It's a simple integer overflow. The constant is an unsigned long,
PyModule_AddIntConstant accepts a signed one. I fixed it for me, patch is
attached.
Attachments:
overflow.patch 573 bytes
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings