[Mauiusers] Big bug in latest maui (and all previous ones too probably)

Åke Sandgren ake.sandgren at hpc2n.umu.se
Fri Sep 16 00:59:25 MDT 2005


On Thu, 2005-09-15 at 13:19 +0200, Åke Sandgren wrote:
> On Thu, 2005-09-15 at 09:10 +0200, Åke Sandgren wrote:
> > Hi!
> > 
> > We just got hit by a bad buffer overflow bug in the UI part of the code.
> > One user submitted 2300 jobs and when doing showq the server crashes.


A hopefully final followup on this.
Attached is a patch that changes all occurences of type
sprintf(buf, "%s%...", buf, arg2
to
sprintf(&buf[strlen(buf)], "%...", arg2

In preparation for using snprintf all over the place and just in case
someone changes the behaviour of sprintf in some libc somewhere.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sprintf.fix
Type: text/x-patch
Size: 139198 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/mauiusers/attachments/20050916/dc569413/sprintf-0001.bin


More information about the mauiusers mailing list