[procps] Re: procps-ng 3.3.9 defects found

  • From: Jim Warner <james.warner@xxxxxxxxxxx>
  • To: procps@xxxxxxxxxxxxx
  • Date: Tue, 03 Dec 2013 14:56:32 -0600

On 12/03/2013 02:42 PM, Jaromir Capik wrote:
The following problems were found during the procps-ng-3.3.9
quality assurance scans:
----------
procps-ng-3.3.9/top/top.c:3449:error[invalidScanfFormatWidth] – Width 80 given 
in format string (no. 2) is larger than destination buffer 'fieldscur[80]', use 
%79s to prevent overflowing it.
----------
procps-ng-3.3.9/sysctl.c:649:error[memleak] – Memory leak: cfgs
----------
procps-ng-3.3.9/proc/whattime.c:77:error[uninitvar] – Uninitialized variable: 
pos
----------
procps-ng-3.3.9/pgrep.c:468:error[memleak] – Memory leak: re
----------

Any volunteers? :]

Hi Jaromir,

I'll deal with the top issue but I don't consider it critical.

The actual contents cannot currently exceed 70 + 1 bytes.

I am puzzled, though, over why this did not arise before.

Are you using new/improved tools?

Regards,

Jim



Other related posts: