[BusyBox] Issue with strings (1.00-pre10)
Ian Latter
Ian.Latter at mq.edu.au
Thu Apr 15 23:57:41 UTC 2004
> Hi, i downloaded it and tested it.
> I see it now.
Cool.
> BTW did you notice that by doing
> strings -n 8 /README
> it works as expected.
> Seems to me that somehow the buffer that is malloced is bigger than
> 4+1=5 b
> at least
> 8 b.
> How can this be?
> Are overlooking something?
Maybe. I am happy enough with the patch; but there are two things
that still seem odd to me;
- why is the xmalloc is for "n+1" (when we do an n-=1 two lines down)?
- why does the error appear on every line, and not just the first?
Does xmalloc memset/bzero the malloc'd mem? If not, then that is
likely your problem.
--
Ian Latter
Internet and Networking Security Officer
Macquarie University
More information about the busybox
mailing list