| #
9a921db4 |
| 28-May-2017 |
alnsn <alnsn@NetBSD.org> |
Cosmetic changes to Lua binding in bozohttpd.
- Don't use negative indicies to read arguments of Lua functions. - On error, return nil, "error string". - Use ssize_t for return values from bozo_read
Cosmetic changes to Lua binding in bozohttpd.
- Don't use negative indicies to read arguments of Lua functions. - On error, return nil, "error string". - Use ssize_t for return values from bozo_read() and bozo_write(). - Prefer lstring especially when if saves you from appending NUL and doing len + 1 which can potentially wraparound. - Don't mix C allocations with Lua functions marked with "m" in the Lua manual. Those functions may throw (longjump) and leak data allocated by C function. In one case, I use luaL_Buffer, in the other case, I rearranged calls a bit.
show more ...
|
| #
881b8188 |
| 28-Dec-2015 |
mrg <mrg@NetBSD.org> |
rename bozo_err/bozo_warn/bozo_asprintf to bozoerr/etc. new rule is that function that mirror libc-style functions get no underscore.
|
| #
cff2d956 |
| 27-Dec-2015 |
mrg <mrg@NetBSD.org> |
several clean ups:
- bozostrdup() gains a request parameter, and uses it to determine what sort of error handling is required - bozo_strdup() dies - size_arrays() reduced slightly, pushing error h
several clean ups:
- bozostrdup() gains a request parameter, and uses it to determine what sort of error handling is required - bozo_strdup() dies - size_arrays() reduced slightly, pushing error handling into the caller - convert to size_t for some array indices - bozo_set_pref() and bozo_init_prefs() gain httpd parameters - apply a bunch of manual CSE to vastly reduce the number of times the string "request->hr_httpd" appears. - CGI parse_header() takes a request not httpd now
XXX: lua glue updated to call bozo_init_prefs() with htttpd parameter, but i'm only guessing here.
show more ...
|
| #
a6e4c202 |
| 04-Jul-2015 |
christos <christos@NetBSD.org> |
fix memory leaks on error; found by brainy.
|
| #
fe91fb6a |
| 15-Aug-2014 |
mbalmer <mbalmer@NetBSD.org> |
NUL terminate a string.
|
| #
4ab4902e |
| 19-Jul-2014 |
lneto <lneto@NetBSD.org> |
lua: updated from 5.1 to 5.3 work3
* lua(1): - changed lua_Integer to intmax_t - updated distrib/sets/lists and etc/mtree - updated bsd.lua.mk - fixed bozohttpd (lua-bozo.c) - compatibiliz
lua: updated from 5.1 to 5.3 work3
* lua(1): - changed lua_Integer to intmax_t - updated distrib/sets/lists and etc/mtree - updated bsd.lua.mk - fixed bozohttpd (lua-bozo.c) - compatibilized bindings: gpio, sqlite * lua(4): - removed floating-point and libc dependencies using '#ifndef _KERNEL' - fixed division by zero and exponentiation - libkern: added isalnum(), iscntrl(), isgraph(), isprint() and ispunct() - acpica: removed isprint() from acnetbsd.h - libc: moved strcspn.c, strpbrk.c and strspn.c to common - removed stub headers - compatibilized bindings: luapmf, luasystm * reorganized luaconf.h * updated doc/CHANGES and doc/RESPONSIBLE
show more ...
|
| #
d1b43391 |
| 02-Jan-2014 |
mrg <mrg@NetBSD.org> |
- update CHANGES with recent changes - update version to 20140102 - update copyrights - use getcwd() over getwd() - fix lean build (don't include lua)
|
| #
8bbb1276 |
| 19-Nov-2013 |
mbalmer <mbalmer@NetBSD.org> |
fix bad free
|
| #
1f8b65e5 |
| 13-Nov-2013 |
christos <christos@NetBSD.org> |
CID 1107545, 1107546: fix memory leak
|
| #
04c9845e |
| 13-Nov-2013 |
christos <christos@NetBSD.org> |
CID 1107546: Fix memory leak
|
| #
0dfc484a |
| 17-Oct-2013 |
mbalmer <mbalmer@NetBSD.org> |
fold long line in a readable way; pass nil as query table if reading form data fails
|
| #
b972118e |
| 17-Oct-2013 |
mbalmer <mbalmer@NetBSD.org> |
better approach to NUL terminate strings
|
| #
a6427458 |
| 17-Oct-2013 |
mbalmer <mbalmer@NetBSD.org> |
plug a memory leak
|
| #
de3f2be7 |
| 17-Oct-2013 |
mbalmer <mbalmer@NetBSD.org> |
zero allocated memory buffers
|
| #
cb23152c |
| 12-Oct-2013 |
mbalmer <mbalmer@NetBSD.org> |
add Lua scripting support to bozohttpd, see httpd(8) for details
|