[Libreoffice-bugs] [Bug 118514] New: overflow at realpath()

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jul 3 07:59:27 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=118514

            Bug ID: 118514
           Summary: overflow at realpath()
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: mishra.dhiraj95 at gmail.com

File:
https://github.com/LibreOffice/core/blob/master/desktop/unx/source/start.c#L191

This function does not protect against buffer overflows, and some
implementations can overflow internally. 

Ensure that the destination buffer is at least of size MAXPATHLEN, andto
protect against implementation problems, the input argument should also be
checked to ensure it is no larger than MAXPATHLEN.

According to the documentation of realpath() the output buffer needs to be at
least of size PATH_MAX specifying output buffers large enough to handle the
maximum-size possible result from path manipulation functions.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180703/9d121d4f/attachment-0001.html>


More information about the Libreoffice-bugs mailing list