[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: does lua_pushstring check stack overflow? (Lua 5.0.2)
- From: Klaus Ripke <paul-lua@...>
- Date: Tue, 29 Nov 2005 03:33:32 +0100
On Mon, Nov 28, 2005 at 03:26:02PM -0500, Glenn Maynard wrote:
> On Mon, Nov 28, 2005 at 07:17:08AM -0200, Luiz Henrique de Figueiredo wrote:
> > No API function tests anything. In C, you're on your own, as in any
> > other C library.
> Well, a great many libraries do consistency checks (and a great many
> others don't). eg. open(NULL, O_RDONLY) will return errno EFAULT, not
> segfault (at least in Linux). It's just a design choice.
not exactly, as it's not a library function, but a syscall
(or really some small wrapper for it).
For the kernel crashing is not a design choice (on non-windows systems).