profile
viewpoint

HalleyAssist/zigbee-shepherd 10

An open source ZigBee gateway solution with node.js.

HalleyAssist/ansible-tinc 0

A tinc Ansible playbook

HalleyAssist/cc-znp 0

The interface for a host to communicate with TI CC253X Zigbee Network Processor(ZNP) over a serial port.

HalleyAssist/zcl-id 0

An utility for getting ZCL identifiers defined by ZigBee Cluster Library.

HalleyAssist/zstack-af 0

ZS: AF layer

splitice/acme-client 0

PHP Let's Encrypt client

splitice/AnimatedCaptcha 0

This PHP class makes it easy to create animated GIFs, especially CAPTCHAs

PR opened openresty/stream-lua-nginx-module

src/ngx_stream_lua_ssl_certby.c: fix possible null pointer dereference found by Coverity

441    c = log->data;
442
   deref_ptr: Directly dereferencing pointer c.
443    if (c->addr_text.len) {
444        p = ngx_snprintf(buf, len, ", client: %V", &c->addr_text);
445        len -= p - buf;
446        buf = p;
447    }
448
   CID 251599 (#1 of 1): Dereference before null check (REVERSE_INULL)check_after_deref: Null-checking c suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
449    if (c && c->listening && c->listening->addr_text.len) {
450        p = ngx_snprintf(buf, len, ", server: %V", &c->listening->addr_text);
451        /* len -= p - buf; */
452        buf = p;
453    }
+12 -9

0 comment

1 changed file

pr created time in 4 days

push eventopenresty/stream-lua-nginx-module

Ilya Shipitsin

commit sha e9cfdc06513849bb61283bcc629695634cef3162

chore: fix possible null pointer dereference found by Coverity (#223) 785 buf = p; 786 deref_ptr: Directly dereferencing pointer c. 787 if (c->addr_text.len) { 788 p = ngx_snprintf(buf, len, ", client: %V", &c->addr_text); 789 len -= p - buf; 790 buf = p; 791 } 792 CID 251610 (#1 of 1): Dereference before null check (REVERSE_INULL)check_after_deref: Null-checking c suggests that it may be null, but it has already been dereferenced on all paths leading to the check. 793 if (c && c->listening && c->listening->addr_text.len) { 794 p = ngx_snprintf(buf, len, ", server: %V", &c->listening->addr_text); 795 /* len -= p - buf; */ 796 buf = p; 797 }

view details

push time in 4 days

PR merged openresty/stream-lua-nginx-module

chore: fix possible null pointer dereference found by Coverity
785    buf = p;
786
   deref_ptr: Directly dereferencing pointer c.
787    if (c->addr_text.len) {
788        p = ngx_snprintf(buf, len, ", client: %V", &c->addr_text);
789        len -= p - buf;
790        buf = p;
791    }
792
   CID 251610 (#1 of 1): Dereference before null check (REVERSE_INULL)check_after_deref: Null-checking c suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
793    if (c && c->listening && c->listening->addr_text.len) {
794        p = ngx_snprintf(buf, len, ", server: %V", &c->listening->addr_text);
795        /* len -= p - buf; */
796        buf = p;
797    }
+12 -9

0 comment

1 changed file

chipitsine

pr closed time in 4 days

PR opened openresty/stream-lua-nginx-module

src/ngx_stream_lua_timer.c: fix possible null pointer dereference found by Coverity
785    buf = p;
786
   deref_ptr: Directly dereferencing pointer c.
787    if (c->addr_text.len) {
788        p = ngx_snprintf(buf, len, ", client: %V", &c->addr_text);
789        len -= p - buf;
790        buf = p;
791    }
792
   CID 251610 (#1 of 1): Dereference before null check (REVERSE_INULL)check_after_deref: Null-checking c suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
793    if (c && c->listening && c->listening->addr_text.len) {
794        p = ngx_snprintf(buf, len, ", server: %V", &c->listening->addr_text);
795        /* len -= p - buf; */
796        buf = p;
797    }
+12 -9

0 comment

1 changed file

pr created time in 5 days

issue commentopenresty/stream-lua-nginx-module

ngx.log and print not working in the init phase of stream

I have read ngx_stream_lua_ngx_log@ngx_stream_lua_log.c ` r = ngx_stream_lua_get_req(L);

if (r && r->connection && r->connection->log) {
    log = r->connection->log;
} else {
    log = ngx_cycle->log;
}`

it looks that all the log from init phase will be written to main log, because no any request at this phase. bu i think it's unreasonable. each log generated from the stream directive should be written to the specified log file.

@agentzh @dndx @spacewander

8kbenchmk

comment created time in 18 days

issue openedsplitice/IPTables.Net

Provide iptchelper binaries in releases

It would be wonderful if you could provide x86 and x64 versions of the iptchelper library, that would avoid everyone having to figure out how to build it.

created time in 23 days

startedsplitice/IPTables.Net

started time in 24 days

delete branch openresty/stream-lua-nginx-module

delete branch : udp_raw_arg

delete time in a month

push eventopenresty/stream-lua-nginx-module

Datong Sun

commit sha c8086b675c14512ad9bef524a48e8939483944af

bugfix: ignore the `raw` argument when acquiring UDP request socket. sync with meta-lua-nginx-module e1f1f20.

view details

push time in a month

PR merged openresty/stream-lua-nginx-module

bugfix: ignore the `raw` argument when acquiring UDP request socket.

sync with meta-lua-nginx-module e1f1f20.

https://github.com/openresty/meta-lua-nginx-module/pull/82

+44 -0

0 comment

2 changed files

dndx

pr closed time in a month

Pull request review commentopenresty/stream-lua-nginx-module

bugfix: ignore the `raw` argument when acquiring UDP request socket.

 ngx_stream_lua_req_socket_udp(lua_State *L)      ngx_stream_lua_socket_udp_upstream_t           *u; +    n = lua_gettop(L);++    if (n != 0 && n != 1) {+        return luaL_error(L, "expecting zero arguments, but got %d",+                          lua_gettop(L));+    }++    if (n == 1) {+        lua_pop(L, 1);

OK, for the sake of API compatibility, we can ignore the first argument value.

dndx

comment created time in a month

fork erisonliang/QuadTrees

High Performance Quad Tree Implementations for C# (Point, Rect and PointInv)

fork in a month

push eventopenresty/stream-lua-nginx-module

Hawker

commit sha 9c53258faf425d85198413878154ea6bd58b2619

bugfix: fixed memory leak in debug log.

view details

push time in a month

PR merged openresty/stream-lua-nginx-module

bugfix: memory leak in debug log function

If turn on nginx debug log ./configure --with-debug ..., but not select debug_http log level. ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ...) will be ignored, malloc_trim() can't be executed as function parameter. And memory isn't returned to OS immediately. This bug may cause serious memory leak, OOM. 截屏2020-12-03 下午5 52 27 Simply, ngx_log_debug1 is optional, but malloc_trim obligatory.

+5 -1

0 comment

1 changed file

hawkxiang

pr closed time in a month

issue openedopenresty/stream-lua-nginx-module

Can't read/write to the same udp cosocket in diffrent thread

openresty 1.15.8.2 in stream block when recv data from udp cosocket in thread a , send data to udp cosocket in thread b would throw err: socket busy

created time in a month

create barnchopenresty/stream-lua-nginx-module

branch : ssl1.1.1i

created branch time in a month

pull request commentopenresty/stream-lua-nginx-module

Add access_by_lua(_block/_file) and access_by_lua_no_postpone

@spacewander @xiaocang @tangsty @agentzh bump

arcivanov

comment created time in a month

startedsplitice/QuadTrees

started time in a month

pull request commentopenresty/stream-lua-nginx-module

Add access_by_lua(_block/_file) and access_by_lua_no_postpone

This would also be useful for me since I want to resolve a name to be used in balancer_by_lua_block.

arcivanov

comment created time in a month

pull request commentopenresty/stream-lua-nginx-module

Add access_by_lua(_block/_file) and access_by_lua_no_postpone

@spacewander @xiaocang @tangsty @agentzh bump

arcivanov

comment created time in a month

created tagHalleyAssist/SyncFunction

tagv1.1.11

A mutex for synchronization using promises

created time in a month

issue commentopenresty/stream-lua-nginx-module

ngx.log and print not working in the init phase of stream

I'm sure the code block has been executed, I got msg from /var/log/syslog

init_by_lua_block {
    local ffi = require("ffi")
    ffi.cdef[[
        void syslog(int priority, const char *format, ...);
    ]]
    ffi.C.syslog(7, "I'm here")
    ngx.log(ngx.DEBUG,"I'm here")
}
8kbenchmk

comment created time in a month

issue openedopenresty/stream-lua-nginx-module

ngx.log and print not working in the init phase of stream

`stream{ error_log /var/log/nginx/stream_error.log debug; init_by_lua_block { ngx.log(ngx.DEBUG,"I'm here") } init_worker_by_lua_block { print("I'm here") }

server {
    listen 123 udp;
    lua_code_cache off;
    content_by_lua_file /var/www/test/main.lua;
}

} ` openresty/1.19.3.1

no msg output in the error log, but when main.lua running, ngx.log and print both working.

created time in a month

startedsplitice/xt_SDNAT

started time in a month

PR opened openresty/stream-lua-nginx-module

bugfix: memory leak in debug log function

If turn on nginx debug log ./configure --with-debug ..., but not select debug_http log level. ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ...) will be ignored, malloc_trim() can't be executed as function parameter. And memory isn't returned to OS immediately. This bug may cause serious memory leak, OOM. 截屏2020-12-03 下午5 52 27 Simply, ngx_log_debug1 is optional, but malloc_trim obligatory.

+5 -1

0 comment

1 changed file

pr created time in a month

created tagHalleyAssist/SyncFunction

tagv1.1.10

A mutex for synchronization using promises

created time in 2 months

created tagHalleyAssist/SyncFunction

tagv1.1.9

A mutex for synchronization using promises

created time in 2 months

created tagHalleyAssist/SyncFunction

tagv1.1.8

A mutex for synchronization using promises

created time in 2 months

created tagHalleyAssist/SyncFunction

tagv1.1.7

A mutex for synchronization using promises

created time in 2 months

pull request commentopenresty/stream-lua-nginx-module

Add access_by_lua(_block/_file) and access_by_lua_no_postpone

@spacewander @xiaocang @tangsty @agentzh bump

arcivanov

comment created time in 2 months

more