tarantool / nginx_upstream_module

Tarantool NginX upstream module (REST, JSON API, websockets, load balancing)
Other
174 stars 18 forks source link

stack has overflowed if number of items more than uint16_t #84

Closed dedok closed 7 years ago

dedok commented 7 years ago

If client sends more than uint16_t elements in array or map, then nginx sends overflowed msgpack count of elements.

dedok commented 7 years ago

Referred to https://github.com/tarantool/tarantool/issues/2540

elmirk commented 6 years ago

we use nginx upstream module v2.6rc3 and nginx 1.13.6 and tarantool version: 1.7.6-0-g7b2945d

we have tarantool crashed when test POST response with some kind of wget 10.10.10.89:8081/pgw/v1 --header="Content-Type: application/json; charset=utf-8;" --post-data '{"myData":{"method":"testInfo","params":[{"msisdn":"92727111287" , "service":"service0"}],"id":1}}'

in tarantool logs then src/box/iproto.cc:682: void iproto_decode_msg(iproto_msg*, const char*, const char, bool): Assertion `pos == reqend' failed.