struct dirent related hooks incorrectly bound to those from glibc directly
Bug #1596772 reported by
You-Sheng Yang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
In Progress
|
Critical
|
Unassigned | ||
libhybris |
Fix Committed
|
Critical
|
Simon Fels |
Bug Description
Android Bionic defines struct dirent to utilize 64 bit d_ino/d_off fields in all architectures, which is not the case in glibc. Current statuses of calls related to struct dirent are:
* readdir, readdir_r: hooked with special care to d_ino/d_off fields
* scandir, scandir64: hooked directly to glibc calls
* readdir64 (5.0+), readdir64_r (5.0+), alphasort, alphasort64: not hooked
* scandirat (n-preview+), scandirat64 (n-preview+): not hooked
So some calls are commonly available starting at least from AOSP 4.4 but are either not hooked or hooked direct to glibc calls. readdir is one of the them that causes segmentation fault in Midori.
description: | updated |
Changed in libhybris: | |
importance: | Undecided → Critical |
assignee: | nobody → Simon Fels (morphis) |
status: | New → In Progress |
Changed in canonical-devices-system-image: | |
status: | New → In Progress |
Changed in libhybris: | |
status: | In Progress → Fix Committed |
Changed in canonical-devices-system-image: | |
milestone: | none → 13 |
importance: | Undecided → Critical |
assignee: | nobody → John McAleely (john.mcaleely) |
Changed in canonical-devices-system-image: | |
milestone: | 13 → x1 |
Changed in canonical-devices-system-image: | |
assignee: | John McAleely (john.mcaleely) → nobody |
To post a comment you must log in.
I made a MP for it.
https:/ /code.launchpad .net/~binli/ libhybris/ +git/libhybris- ubuntu/ +merge/ 298481