GauthamBanasandra opened a new pull request #2853:
URL: https://github.com/apache/hadoop/pull/2853


   * Need to ensure that the destination
     buffer size is greater the source content.
     Truncation could happen otherwise.
   * snprintf returns the size to be written
     when we pass NULL for destination buffer
     and 0 for the size of the destination
     buffer.
   * We will use this information to ensure
     that the source content doesn't exceed
     the destination buffer's size before
     making the call to write.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to