RFC: path display and path filtering features.
Dmitry V. Levin
ldv at altlinux.org
Mon Mar 14 23:20:32 UTC 2011
On Mon, Mar 14, 2011 at 10:47:18AM -0500, Grant Edwards wrote:
> On Sat, Mar 12, 2011 at 03:48:08PM -0600, Grant Edwards wrote:
>
> > Attached are my current diffs. I've merged recent changes from the
> > main git repository and addressed various comments.
> >
> > The notable changes are addition of handling for 'select' syscalls,
> > 'poll' syscalls, and 'epoll_ctl'.
>
> This set of diffs has had a little more cleanup done an code that
> checks paths residing in user-space was re-factored into a separate
> function.
Thanks. I have two comments after skimming through the patch:
1. never use alloca(3) with arbitrary size coming from untrusted input:
it's unsafe, because alloca(3) has no means to indicate a memory
allocation failure;
2. getpath() sounds a bit generic, I suggest renaming it to something
more specific, e.g. getfdpath().
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20110315/c987ac9e/attachment.bin>
More information about the Strace-devel
mailing list