pjsip / pjproject

PJSIP project
http://www.pjsip.org
GNU General Public License v2.0
2.07k stars 786 forks source link

Misc Coverity fixes #4145

Closed sauwming closed 2 weeks ago

sauwming commented 2 weeks ago

1102584 endpoint.c: Unchecked return value 1102634 http_client.c: Overflowed constant 1547480 pjsua_aud.c: Overflowed integer argument 1547489 crc32.c: Overflowed constant 1550395 unittest.c: Dereference after null check 1547487 sip_multipart.c: Unused value 1565388 stream.c: Result is not floating-point 1564735 atomic_queue.cpp: Uninitialized pointer field

Also fixes compilation warnings: ../src/pj/pool_caching.c:353:18: warning: unused function 'cpool_on_block_alloc' [-Wunused-function] ../src/pj/pool_caching.c:370:13: warning: unused function 'cpool_on_block_free' [-Wunused-function] ../src/pjlib-test/fifobuf.c:136:15: warning: unused variable 'available' [-Wunused-variable] ../src/pjlib-test/ssl_sock.c:543:20: warning: unused function 'load_cert_from_store' [-Wunused-function]