aboutsummaryrefslogtreecommitdiffstats
path: root/libc/kernel/tools/update_all.py
diff options
context:
space:
mode:
authorBruce Beare <bruce.j.beare@intel.com>2011-08-02 06:43:52 -0700
committerJean-Baptiste Queru <jbq@google.com>2011-12-19 09:38:48 -0800
commita37f3729730e4e7345977915d67adc3eea93dfe4 (patch)
treeb292c186e3959bdae3a6f558eb7436f75cf01331 /libc/kernel/tools/update_all.py
parentc2d5944e19863bb2d831b13893a3bb78e0d53783 (diff)
downloadandroid_bionic-a37f3729730e4e7345977915d67adc3eea93dfe4.tar.gz
android_bionic-a37f3729730e4e7345977915d67adc3eea93dfe4.tar.bz2
android_bionic-a37f3729730e4e7345977915d67adc3eea93dfe4.zip
readdir: fix interface to kernel getdents64 function
Issue: The kernel will pad the entry->d_reclen in a getdents64 call to a long-word boundary. For very long records, this could exceed the size of a struct dirent. The mismatch in the size was causing error paranoid checking code in bionic to fail... thus causing an early "end" when reading the dirent structures from the kernel buffer. Test: ls mkdir abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstu ls Change-Id: I75d1f8e45e1655fdd7bac4a08a481d086f28073a Author: Bruce Beare <bruce.j.beare@intel.com>
Diffstat (limited to 'libc/kernel/tools/update_all.py')
0 files changed, 0 insertions, 0 deletions