ostis-ai/sc-machine

Too big number in websocket request crusher sc-server

Closed this issue · 0 comments

Describe the bug
If request contains 9999999999 then sc-server fails during request processing.

To Reproduce
Steps to reproduce the behavior:

  1. Start sc-server
  2. Send websocket request like {"id": 1, "type": "check_elements", "payload": [999999999]}
  3. Response arrives
  4. Send websocket request like {"id": 1, "type": "check_elements", "payload": [9999999999]}
  5. Segmentation fault happens

Expected behavior
Some response arrives.

Screenshots
image

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Version: main at bcd0560