[procps] stat2proc issue

  • From: Jaromir Capik <jcapik@xxxxxxxxxx>
  • To: procps-ng <procps@xxxxxxxxxxxxx>
  • Date: Fri, 24 Aug 2012 07:30:19 -0400 (EDT)

Hi everyone.

I recently found a strange piece of code in stat2proc
function located in the proc/readproc.c source file.
There's a sscanf function having 39 format alements,
but only 33 argument elements. It seems that 6 of them
were commented out, but the format string remained
untouched. So ... it's pretty possible, that some
of the fields have a wrong format specifier due
to the shift caused by commenting some arguments out.

Does anybody know why it's like that?

Thanks,
Jaromir.

--
Jaromir Capik
Red Hat Czech, s.r.o.
Software Engineer / BaseOS

Email: jcapik@xxxxxxxxxx
Web: www.cz.redhat.com
Red Hat Czech s.r.o., Purkynova 99/71, 612 45, Brno, Czech Republic
IC: 27690016 



Other related posts: