Open daurnimator opened 9 years ago
The current noticeReceiver and noticeProcessor use lua functions that may fail and longjmp out.
longjmp
One option is to lua_pcall out to a second function.
lua_pcall
lua_pcallk
Alternatively, only use functions that can't fail.
lua_rawgetp
lua_pushstring
lua_rawget
PGresult *
luaL_error
PQnoticeReceiver
The current noticeReceiver and noticeProcessor use lua functions that may fail and
longjmp
out.One option is to
lua_pcall
out to a second function.lua_pcallk
)Alternatively, only use functions that can't fail.
lua_rawgetp
instead oflua_pushstring
+lua_rawget
PGresult *
luaL_error
PQnoticeReceiver
is by definition called for warnings or below, so it's not supposed to fail