[torqueusers] mom segfault in new diag code

Dave Jackson jacksond at supercluster.org
Thu Oct 28 09:15:42 MDT 2004


Garrick,

  This should already be taken care of in the latest few snapshots.  The
new code performs bounds checking at every point in the diagnosis. 
Please let us know if this takes care of your problem.

Thanks,
Dave

On Wed, 2004-10-27 at 17:33, Garrick Staples wrote:
> torque-1.1.0p4-snap.1098121584
> 
> The new momctl diag code is segfaulting in mom_main.c:rm_request().  It seems
> that neither tmpLine or output are large enough.  Specifically the second
> strcat in this code is overflowing output:
> 
>             if (verbositylevel >= 1)
>               {
>               /* display okclient list */
>               
>               tmpLine[0] = '\0';
>                 
>               tlist(okclients,tmpLine,1024);
>               
>               strcat(output,"Trusted Client List:   ");
>               
>               strcat(output,tmpLine);
>               
>               strcat(output,"\n");
>               }
> 



More information about the torqueusers mailing list