Print

Print


Follow-up Comment #13, bug #91844 (project xrootd):

It appears that the latest versions of sprintf() in glibc now pass the target
buffer length and will complain if it is too small for the format being used.
I suppose that's nice but obviously violates the man page description. In
this case, the buffer didn't include a place for the null byte. This was done
on purpose because the null byte was supposed to be placed in the next
adjacent buffer element (the output buffer is actually a struct of adjacent
output buffers). This simply means that the sprintf() needs to be changed to
an snprintf(). We'll schedule a fix for this. Let's just hope that glibc
developers didn't screw that one up as snprintf() is really supposed to
discard characters that don't fit without complaint.

    _______________________________________________________

Reply to this item at:

  <http://savannah.cern.ch/bugs/?91844>

_______________________________________________
  Message sent via/by LCG Savannah
  http://savannah.cern.ch/

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1