[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: does lua_pushstring check stack overflow? (Lua 5.0.2)
- From: Glenn Maynard <glenn@...>
- Date: Mon, 28 Nov 2005 15:26:02 -0500
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.
--
Glenn Maynard