[debian-mysql] Bug#688588: Undefined conversion from double to enum

Michael Tautschnig mt at debian.org
Sun Sep 23 22:04:47 UTC 2012


Package: mysql-proxy
Version: 0.8.1-1.1

While building the package using our research compiler infrastructure we noticed
the following conversion with undefined behaviour in src/network-mysqld-lua.c,
function network_mysqld_con_lua_handle_proxy_response:

field->type = lua_tonumber(L, -1);

As also described at https://github.com/pavouk/lgi/issues/26, it might be at
least somewhat better to use lua_tointeger.

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20120923/66d293d7/attachment.pgp>


More information about the pkg-mysql-maint mailing list