Commit Graph

436 Commits

Author SHA1 Message Date
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
sauwming 1cda935380
Only include upnpdebug.h if logging is enabled (#3213) 2022-09-19 17:37:09 +07:00
Benny Prijono c03ab41ed5
Documentation fixes for docs.pjsip.org v2.0 project (#3202)
* Improve robustness of sample apps. Fixing crash in aviplay

* Changes in documentation

* Add first pjsua2 hello world sample (from PJSUA2 guide)

* Fix doxygen documentation for docs.pjsip.org v2

* Add make clean-doc target

* Replace Trac ticket URL with GitHub issues URL

* Remove pjsip-book because the correct one is in pjproject_docs
2022-08-09 06:16:16 +07:00
sauwming 8861441ec8
Move UPnP to PJNATH (#3195) 2022-07-29 17:05:28 +08:00
Marcus Froeschl 30ca7186db
Fix compiler warning C4819 (Unicode character in ANSI file) (#3022) 2022-03-25 17:30:10 +08:00
sauwming 6f197385c7
Miscellaneous fixes (#2969)
* Suppressed various compilation warnings
* Fixed CodeQL warning
* Fixed build warning on Android and Linux
* Fix build warning on Visual Studio
* Update target Android SDK version to 29 (for pjsua2 & app), to avoid gradle error: 'Google Play requires that apps target API level 29 or higher'.
* Add support for Camera2 API to ipjsua android app.
* Fix assertion on Win32 app (MSVC2005) because ICE transport info size is 160 bytes while the allocated buffer is just 144 bytes.
* Enable python unit test on windows for github actions.
* Avoid assertion in pjsua test caused by double calling of pjsua_conf_remove_port()
2022-02-24 14:46:01 +07:00
George Joseph 668a828631
Add additional unit test options (#2961) 2022-02-11 12:28:03 +08:00
sauwming ddefd578b1
Fixed ice session assertion when there's no checklist (#2955) 2022-02-10 10:57:07 +08:00
ryancaicse bc32549bb3
Fix some resource leaks (#2928) 2021-12-27 10:05:22 +08:00
Nanang Izzuddin adb8340752 Revert "After ICE nego is completed, don't perform triggered check and ignore any completion of outgoing check."
This reverts commit 105ca1675d.
2021-12-24 15:15:42 +07:00
Nanang Izzuddin 105ca1675d After ICE nego is completed, don't perform triggered check and ignore any completion of outgoing check. 2021-12-24 15:05:35 +07:00
Nanang Izzuddin c6e238d2a3
Avoid memory bloat on ICE restart (#2903) 2021-12-15 09:05:20 +07:00
Riza Sulistyo 6ca06f63ec
Fix some doc warning (#2879) 2021-11-10 09:57:40 +07:00
Nanang Izzuddin 4b11af1d84
When nominating in regular nomination, don't nominate triggered check immediately to avoid concluding a pair with lower priority (see #2812). (#2817) 2021-09-06 15:58:35 +07:00