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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to