You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2016/10/06 12:04:20 UTC

[jira] [Commented] (THRIFT-2564) misc. Lua issues reported by coverity scan

    [ https://issues.apache.org/jira/browse/THRIFT-2564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15551750#comment-15551750 ] 

James E. King, III commented on THRIFT-2564:
--------------------------------------------

Some of these were taken care of in THRIFT-3943.
We should rescan after that is merged and see what's left.

> misc. Lua issues reported by coverity scan
> ------------------------------------------
>
>                 Key: THRIFT-2564
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2564
>             Project: Thrift
>          Issue Type: Bug
>          Components: Lua - Library
>    Affects Versions: 0.9.2, 0.9.3
>            Reporter: Jens Geyer
>
> ** CID 1216829:  Unchecked return value from library  (CHECKED_RETURN)
> /lib/lua/src/usocket.c: 255 in socket_setnonblocking()
> ** CID 1216828:  Unchecked return value from library  (CHECKED_RETURN)
> /lib/lua/src/usocket.c: 261 in socket_setblocking()
> ** CID 1216832:  Logically dead code  (DEADCODE)
> /lib/lua/src/usocket.c: 166 in socket_accept()
> ** CID 1216831:  Logically dead code  (DEADCODE)
> /lib/lua/src/usocket.c: 244 in socket_recv()
> ** CID 1216830:  Logically dead code  (DEADCODE)
> /lib/lua/src/usocket.c: 216 in socket_send()
> ** CID 1216838:  Resource leak  (RESOURCE_LEAK)
> /lib/lua/src/luasocket.c: 316 in l_socket_accept()
> ** CID 1216834:  Division or modulo by zero  (DIVIDE_BY_ZERO)
> /lib/lua/src/lualongnumber.c: 85 in l_div()
> ** CID 1216833:  Division or modulo by zero  (DIVIDE_BY_ZERO)
> /lib/lua/src/lualongnumber.c: 129 in l_mod()
> ** CID 1216844:  Unused pointer value  (UNUSED_VALUE)
> /lib/lua/src/luasocket.c: 233 in l_socket_send()
> ** CID 1216837:  Resource leak  (RESOURCE_LEAK)
> /lib/lua/src/luasocket.c: 221 in l_socket_create()
> ** CID 1216836:  Resource leak  (RESOURCE_LEAK)
> /lib/lua/src/luasocket.c: 372 in l_socket_create_and_connect()
> ** CID 1216842:  Uninitialized scalar variable  (UNINIT)
> /lib/lua/src/usocket.c: 80 in socket_wait()
> ** CID 1216841:  Uninitialized scalar variable  (UNINIT)
> /lib/lua/src/usocket.c: 80 in socket_wait()
> ** CID 1216840:  Uninitialized scalar variable  (UNINIT)
> /lib/lua/src/usocket.c: 136 in socket_get_info()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)