mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
![]() lejp_parse() return type is an int... but in the function, the temp for it is a char. This leads to badness that is currently worked around by casting the return through a signed char type. But that leads to more badness since if there's >127 bytes of buffer left after the end of the JSON object, we misreport it. Bite the bullet and fix the temp type, and fix up all the guys who were working around it at the caller return casting to use the resulting straight int. If you are using this api, remove any casting you may have cut- and-pasted like this n = (int)(signed char)lejp_parse(...); ... to just be like this... n = lejp_parse(...); |
||
---|---|---|
.. | ||
api-test-async-dns | ||
api-test-dhcpc | ||
api-test-fts | ||
api-test-gencrypto | ||
api-test-jose | ||
api-test-lws_dsh | ||
api-test-lws_sequencer | ||
api-test-lws_struct-json | ||
api-test-lws_struct_sqlite | ||
api-test-lws_tokenize | ||
api-test-lwsac | ||
api-test-smtp_client | ||
README.md |
These are buildable test apps that run in CI to confirm correct api operation.
name | tests |
---|---|
api-test-lwsac | LWS Allocated Chunks api |
api-test-lws_struct-json | Selftests for lws_struct JSON serialization and deserialization |
api-test-lws_tokenize | Generic secure string tokenizer api |
api-test-fts | LWS Full-text Search api |
api-test-gencrypto | LWS Generic Crypto apis |
api-test-jose | LWS JOSE apis |
api-test-smtp_client | SMTP client for sending emails |