You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2020/02/21 18:48:35 UTC

[Bug 64170] New: Check for too long file names

https://bz.apache.org/bugzilla/show_bug.cgi?id=64170

            Bug ID: 64170
           Summary: Check for too long file names
           Product: APR
           Version: HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
          Assignee: bugs@apr.apache.org
          Reporter: giovanni@paclan.it
  Target Milestone: ---

In apr_filepath_get in apr/file_io/unix/filepath.c,
if getcwd(3) fails with ERANGE because the specified path is longer than
PATH_MAX,
APR_ENAMETOOLONG shoul be returned.

Patch available at
https://bz.apache.org/bugzilla/attachment.cgi?id=36987&action=diff#srclib/apr/file_io/unix/filestat.c_sec1

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


[Bug 64170] Check for too long file names

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64170

Giovanni Bechis <gi...@paclan.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |giovanni@paclan.it

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


[Bug 64170] Check for too long file names

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64170

--- Comment #1 from Eric Covener <co...@gmail.com> ---
(In reply to Giovanni Bechis from comment #0)
> In apr_filepath_get in apr/file_io/unix/filepath.c,
> if getcwd(3) fails with ERANGE because the specified path is longer than
> PATH_MAX,
> APR_ENAMETOOLONG shoul be returned.
> 
> Patch available at
> https://bz.apache.org/bugzilla/attachment.cgi?id=36987&action=diff#srclib/
> apr/file_io/unix/filestat.c_sec1

was just browsing -- is the comment there copied from win32?  Does it still
apply with some substitution of the api?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


[Bug 64170] Check for too long file names

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64170

--- Comment #2 from Giovanni Bechis <gi...@paclan.it> ---
Diff updated at
https://bz.apache.org/bugzilla/attachment.cgi?id=37165&action=diff#srclib/apr/file_io/unix/filestat.c_sec1

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org