[haiku-bugs] Re: [Haiku] #11618: [libroot] readdir crashes

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Sun, 14 Dec 2014 02:43:44 -0000

#11618: [libroot] readdir crashes
----------------------------+----------------------------
   Reporter:  waddlesplash  |      Owner:  nobody
       Type:  bug           |     Status:  new
   Priority:  normal        |  Milestone:  R1/beta1
  Component:  System/POSIX  |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+----------------------------

Comment (by anevilyak):

 And the value of directory in this case is? It should be noted that the
 code's not checking the result of opendir(), so if it's passing a value to
 it that's not correct for Haiku (i.e. a hardcoded path that may have been
 OK on BeOS, but has changed due to differences in Haiku's directory
 hierarchy), then the subsequent readdir() will indeed crash due to being
 passed an invalid pointer.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11618#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: