diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-03 22:50:52 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-03 22:50:52 +0000 |
commit | ed5a1921810d3ce32cc66fa08f40f6a0f9d7a8fd (patch) | |
tree | 28a3e4396e8b8c69b51c793fb16198002272f894 /echo.c | |
parent | 0427b6742d1907d9af79fd93ed021717e71e433b (diff) | |
download | busybox-w32-ed5a1921810d3ce32cc66fa08f40f6a0f9d7a8fd.tar.gz busybox-w32-ed5a1921810d3ce32cc66fa08f40f6a0f9d7a8fd.tar.bz2 busybox-w32-ed5a1921810d3ce32cc66fa08f40f6a0f9d7a8fd.zip |
if strlen(s) was 0, it would then end up using s[-1] as an array index. Bad,
bad, bad. This was crashing the shell on powerpc boxes, though all other archs
seem to have a much more forgiving malloc implementations. I finally found
this bug using electric-fence on a powerpc box.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@2233 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'echo.c')
0 files changed, 0 insertions, 0 deletions