[#6031] uclibc: readdir() is exhausting the stack because of alloca()
Submitted By: Wolfgang Muees
2010-05-17 04:12:40 Close Date
Medium High Assignee:
N/A Silicon Revision:
Fixed Fixed In Release:
Host Operating System:
all kernel rev.:
Closed Found In Release:
Is this bug repeatable?:
Summary: uclibc: readdir() is exhausting the stack because of alloca()
This item should be fixed, because it is a continious source of problems.
--- Sonic Zhang 2010-05-20 05:43:28
I remember we have already fixed this bug in uClibc.
--- Wolfgang Muees 2010-05-20 06:12:30
this is not fixed. I have checked in trunc SVN: this bug is still present.
This is the original uclibc code.
If you think you have fixed this bug, point me to the change/diff.
--- Sonic Zhang 2010-05-20 23:14:17
OK. let me check the svn log.
--- Ian Jeffray 2010-05-24 08:16:20
It's definitely still a problem Sonic:
A sloppy/poor workaround would be to limit the buffer size to 2KB (that's still
a lot of stack IMHO). A better solution would be heap allocation surely.
--- Robin Getz 2010-06-10 11:00:13
Bump up the priority, so this gets fixed for the next release.
--- Mike Frysinger 2010-07-26 23:48:32
ive added code to use malloc() for nommu systems and keep alloca() for mmu
systems. seems to work with ftpd + stack checking + ls on a dir with ~10k
File Name File Type File Size Posted By
No Files Were Found