in reply to Re^3: Why do poisoned null attacks still work ?
in thread Why do poisoned null attacks still work ?
what better way of opening a file do you see than asking the OS to open it?
Noone denies that open(2) will be called. The question is what else needs to be done. If your interface and the system's differ (as they do here), you need to take steps to handle incompatibilities.
Perl could try to wrap all C APIs that are known to take a C string
Try? They're already wrapped. Systems calls don't know anything about scalars and Perl's stack. The problem is in the conversion from scalars to C-strings, and that occurs entirely in Perl.
Besides, "it's hard to catch every instance so we shouldn't fix any instance" is a very lame argument.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Why do poisoned null attacks still work ?
by Corion (Patriarch) on Jul 22, 2009 at 21:24 UTC | |
by ikegami (Patriarch) on Jul 22, 2009 at 22:53 UTC | |
by Anonymous Monk on Jul 23, 2009 at 00:45 UTC | |
by ikegami (Patriarch) on Jul 23, 2009 at 03:43 UTC | |
by ysth (Canon) on Jul 26, 2009 at 20:18 UTC |