Commit Graph

449 Commits

Author SHA1 Message Date
Nanang Izzuddin 1dab9b63ac
Add TLS/SSL backend: Windows Schannel (#3867) 2024-05-08 10:25:03 +07:00
Nanang Izzuddin 478aeb95e9
Fix data race reported by ThreadSanitizer in caching pool (#3897) 2024-03-26 15:20:44 +07:00
Santiago De la Cruz 427a2b3ab8
Add some missing unlocks (#3893) 2024-03-26 11:52:13 +08:00
Amilcar Ubiera ca4b078cc1
Fix warnings for 32-bit compiler and misc fixes. (#3896) 2024-03-25 11:28:36 +08:00
Fil 70332e3510
Rephrase some type definitions in the docs for a better understanding (#3880) 2024-03-12 10:28:42 +08:00
sauwming ca0c4403ec
Fixed TURN session use after free (#3814) 2024-01-05 15:09:19 +08:00
sauwming 3ed76a11c0
Fixed data races in UPnP (#3819) 2024-01-05 15:08:59 +08:00
Nanang Izzuddin 8e9857a81e
Miscelaneous Coverity fixes (#3792)
* Fix CID: 1527652, 1524421, 1524414, 1524392
* Fixed UPnP data races
2024-01-02 11:53:57 +08:00
sauwming 033e4d7ae3
Fixed printf format warnings (#3813) 2023-12-27 10:32:32 +08:00
Nanang Izzuddin 5651d24ddb
Fix possible race condition in NAT detect between timer and socket. (#3747) 2023-10-25 11:00:59 +07:00
sauwming bd9db5fe87
Fixed race condition between TURN session destroy and incoming data processing (#3730) 2023-10-13 23:35:39 +08:00
sauwming 05d03ad9ee
Fixed Coverity and build warnings (#3707) 2023-09-21 17:43:10 +08:00
Nanang Izzuddin eff4826803
Docs: more fixes on sample/source links (#3675) 2023-09-06 09:56:26 +07:00
Riza Sulistyo d51e247135
Add option to disable renegotiation on TLSv1.2 or earlier (#3663)
* Add option to enable SSL_OP_NO_RENEGOTIATION on OpenSSL

* Add the option to runtime configuration

* Modification based on comments

* Add the implementation files and pjsua2 modification
2023-08-23 09:52:04 +07:00
Riza Sulistyo 935453830e
Check STUN tdata before sending the message (#3594)
* Check STUN tdata before sending the message

* Modification based on comment

- Add and check is_destroying to pj_stun_client_tsx

* Combine check
2023-06-15 18:40:14 +07:00
jimying b4921bfcd9
Add close-on-exec flag (#3553) 2023-05-16 11:59:37 +08:00
Nanang Izzuddin de58d2f4d0
Avoid ICE agents seeing different valid ICE candidate pairs (#2929) 2023-05-15 09:17:59 +08:00
Riza Sulistyo 90a704b0c6
Change socket assertion check to allow socket handle value 0 (#3500)
* Change socket assertion check to allow socket handle value 0

* Modification based on comments

- Revert changes in sock_qos_symbian.cpp
- Remove check for sock value 0
2023-04-11 09:14:04 +07:00
jimying e52a1a325d
Minor modify (ice_strans): incorrect free resource (#3481) 2023-04-04 18:16:28 +08:00
bennylp 7a058dee81 Replace unsafe string functions such as sprintf, strcpy with the safer counterparts e.g. snprintf, strxcpy 2023-03-27 18:48:25 +07:00
bennylp 6f8b87c562 Merge branch 'coverity01' of https://github.com/pjsip/pjproject into coverity01 2023-03-24 11:11:27 +07:00
bennylp 5ed9461bbe Replace unsafe string functions such as strcpy, strncpy, strcat, and sprintf with newly implemented pj_ansi_strxcpy, pj_ansi_strxcpy2, and pj_ansi_strxcat 2023-03-24 11:11:20 +07:00
sauwming 02356e87f7 Fixed warnings in pjlib, pjmedia, and pjnath 2023-03-23 12:10:45 +08:00
bennylp 963192c76d Merge branch 'coverity01' of https://github.com/pjsip/pjproject into coverity01 2023-03-22 08:45:48 +07:00
bennylp 398fabd77f Fixed printf style format warnings 2023-03-22 08:45:23 +07:00
sauwming 1075aa7afc
Fixed TURN allocation parameter (#3452) 2023-03-22 08:23:58 +08:00
sauwming eaa8c37872 Fixed build failure due to printf format security error 2023-03-21 13:55:08 +08:00
sauwming da72b21161 Fixed build failure on Bitrise Android 2023-03-21 13:45:11 +08:00
bennylp f94ec926da Fix coverity scan warnings 2023-03-17 16:24:38 +07:00
bennylp ce8508ab51 Fixed coverity scan warnings 2023-03-16 16:51:42 +07:00
bennylp 319bbab087 Fix coverity scan warnings 2023-03-15 17:15:00 +07:00
bennylp a2abae0a40 Fixed coverity warnings 2023-03-15 05:23:10 +07:00
sauwming 4680c7add7 Merge master 2023-03-14 10:24:59 +08:00
jimying b4184bb56d
Fix build with CFLAGS -Wextra warning reports (#3428) 2023-03-14 09:56:18 +08:00
sauwming 456b38700c Fixed reports classified as high impact 2023-03-03 10:53:22 +08:00
sauwming ecddafbb1d Fixed warnings (3) 2023-02-28 12:50:51 +08:00
jimying a27867898e
Misuse PJ_DECL in some function define (#3402) 2023-02-23 19:37:03 +08:00
sauwming 6dc42dfcd4 Fixed more warnings 2023-02-21 15:06:23 +08:00
sauwming 66c101f3d3
Add API to shutdown TURN session with the appropriate error status (#3392)
* Add pj_turn_session_shutdown2()

* Minor: fix indentation
2023-02-20 19:00:57 +08:00
jimying 8054a92cd5
Fix doc error (#3375) 2023-02-16 10:03:01 +08:00
sauwming bc4812d31a
Merge pull request from GHSA-cxwq-5g9x-x7fr
* Fixed heap buffer overflow when parsing STUN errcode attribute

* Also fixed uint parsing
2022-12-23 15:05:28 +08:00
Nanang Izzuddin 087832fd1a
Fix undefined-shift in STUN message check (#3313) 2022-12-22 13:55:05 +08:00
Nanang Izzuddin d8440f4d71
Merge pull request from GHSA-9pfh-r8x4-w26w
* Fix buffer overread in STUN message decoder

* Updates based on comments
2022-12-20 12:39:12 +08:00
Riza Sulistyo 5ac9104514
Expand tab to spaces and remove $Id$ (#3292) 2022-11-22 16:26:54 +07:00
sauwming 40a06fba2c Misc (re #3087): Update iOS sample app projects and fix build warnings 2022-11-01 12:02:49 +08:00
sauwming ae580f351f Misc (re #3087): Suppressed build warning on Mac 2022-11-01 11:01:45 +08:00
jimying 6f2ea3aec3
Remove valgrind warning for pjnath (points to uninitialised byte) (#3052) 2022-10-19 10:51:52 +07:00
Sébastien Blin 35b00d53ce
ice_session: fix crash if all ipv6 addresses are deprecated (#3109) 2022-10-19 10:46:28 +07:00
orbea c804b31f85
Fix build fail on alpine linux (with musl libc) : no execinfo.h (#3263)
The execinfo.h header is GNU specific and is not available with musl.

Gentoo Issue: https://bugs.gentoo.org/867343

Co-authored-by: jimying <yingqw.js@gmail.com>
2022-10-17 13:32:23 +08:00
jimying e4a8d0ad9c
Fix possible deadlock in TURN session (not release lock) (#3256) 2022-09-27 14:21:05 +07:00