1
0
mirror of https://github.com/coturn/coturn.git synced 2025-12-24 17:31:00 +01:00

1652 Commits

Author SHA1 Message Date
Gustavo Garcia
8ea9452c0a Fix msvc analyzer error on goto label on rfc5769check 2024-05-04 19:13:06 +02:00
Stefan Junker
158fe9b698
Fix buffer overflow in generate_enc_password with increase rsalt by 2 (#1463)
before this change i see a bufferflow during `readable_string`.
2024-05-04 18:26:35 +02:00
tyranron
e1d8661b40
Update Debian "bookworm" to 20240423 snapshot in Docker image 2024-04-24 12:19:08 +03:00
Gustavo Garcia
386371c174
Fix lint errors 2024-04-21 23:05:29 +02:00
Nikolayshcx
eb3af26867
Add support for raw public keys (Rfc 7250) (#1458)
Resolving #1456

---------

Co-authored-by: nmegdanov <nikolay.megdanov@softavail.com>
2024-04-19 17:12:48 +02:00
Gustavo Garcia
c2d13700ac Fix clang-format lint warnings 2024-04-19 17:08:49 +02:00
Gustavo Garcia
28294cf053 Fix const during free warning in rfc5769check app 2024-04-19 16:23:30 +02:00
Kang Lin
5b68014699
Refactor: peer_input_handle (#1325) 2024-04-19 12:09:43 +02:00
tyranron
bc54a4d940
Update Debian "bookworm" to 20240408 snapshot in Docker image 2024-04-10 14:30:37 +03:00
redraincatching
e96f22ab71
workflow tidying (#1396)
Normalisation of some of the workflow files
2024-04-09 23:18:03 +02:00
Wittmer, Christian
b009624902
Update turnserver.conf Example about listening-ip (#1336)
Fixes #1294
2024-04-09 23:03:53 +02:00
NO NAME
3f66c028fa
Fix Cmake find issue in libevent (#1466)
Fixed an issue in libevent's CMake configuration where pthreads were not
correctly added to the optional components list, leading to a
compilation error. #1448

Co-authored-by: linwenchen <wenchen0803@qq.com>
2024-04-09 11:51:31 +02:00
Kang Lin
0fc60d48fa
CMake: Declare the variable nearby (#1387)
CMake: Declare the variable nearby
2024-03-31 09:57:54 +02:00
Pavel Punsky
edebb9ad05
Print version only, no extra lines (#1441)
Before
<img width="615" alt="Screenshot 2024-03-02 at 2 47 48 PM"
src="https://github.com/coturn/coturn/assets/2505440/c3f01e97-914c-4391-af32-d3442d265e90">

After
<img width="402" alt="Screenshot 2024-03-02 at 2 47 28 PM"
src="https://github.com/coturn/coturn/assets/2505440/ce3deb7b-5f70-4158-8cd9-eceae0dcc995">
2024-03-31 09:53:21 +02:00
dependabot[bot]
9a79c813e3
Upgrade softprops/action-gh-release GitHub Action from 1 to 2 version (#1449) 2024-03-11 11:40:29 +01:00
ashamedbit
412788b120
Fix memory leak in rfc5769check.c (#1410)
I came across the open issue #1368 which is a leaksanitizer report about
a leak that happens on make check. I was able to reproduce the bug on
running `make check` and was able to generate a patch for it. The leak
happens within function `check_oauth`.

Issue: The variable `base64encoded_ltp` is allocated within
`base64_encode` however it is not de-allocated within the coming loop.

I have verified that after the patch, the leak no longer occurs through
`leaksanitizer` (and there is no double free for that matter)

---------

Co-authored-by: Pavel Punsky <eakraly@users.noreply.github.com>
2024-03-03 14:04:40 -08:00
ashamedbit
456e2e81b3
Fix memory leak in netengine.c (#1411)
This is in response to issue #1366
The clang static analyzer basically claims that there is a memory leak
happening in `set_ssl_ctx` for the variable `args`. The leak is
triggered when the base event `base` is NULL and the condition within
`set_ssl_ctx` is not triggered. Therefore as a patch I am adding an else
condition to free it. (It cannot be freed after the event is created by
`event_new` because `args` can be invoked as argument for callback
function later on)

Please let me know if this patch is helpful :)

---------

Co-authored-by: Pavel Punsky <eakraly@users.noreply.github.com>
2024-03-02 14:15:58 -08:00
ashamedbit
68b9f19f7f
Fix memory leak on http_server.c (#1412)
This is in response to issue #1365.
The clang static analyzer basically claims that there is a memory leak
happening in `parse_http_request_1` for the variable `kv`. The leak is
triggered when evhttp_parse_query_str fails and is unable to obtain key
value pairs for a given URI. In this case ret is freed, however kv is
still not freed and thereafter not used. Therefore as a patch I am
freeing kv right after ret is freed.

Please let me know if this patch is helpful :)

---------

Co-authored-by: Pavel Punsky <eakraly@users.noreply.github.com>
2024-03-02 14:10:53 -08:00
redraincatching
294a2b69a0
ubuntu build dependencies extracted to composite actions (#1399)
superseding changes made in pr #1394 on request of @jonesmz 

extracted ubuntu build dependencies into a composite action for
maintainability reasons
2024-03-02 13:45:24 -08:00
Pavel Punsky
2c265c9777
Delete unused variable (#1437) 2024-02-25 16:07:08 -08:00
redraincatching
ac00b41a8e
changed variables in stunclient.c to bool (C11) (#1421)
# changed variables that appeared in `stunclient.c` and their uses to
`bool` to follow C11 idioms
## approach was as follows:
- if a variable of type `int` was only being used as a boolean, replace
it with bool as defined in `<stdbool.h>`
- replace its declaration and assignment with true/false, depending on
prior assignment as 0/1

changes were only made when i was certain the variables were not being
used as an int, so i may have missed some

---

## variables changed in `stunclient.c`
- `rfc5780`
- `change_ip`
- `change_port`

their usages were changed only where they appeared in the apps
directory, and then everywhere that generated a warning after make

- `stunclient.c` itself
- `natdiscovery.c`
2024-02-20 18:43:24 -08:00
tyranron
873cabd6a2
Update Debian "bookworm" to 20240211 snapshot in Docker image 2024-02-14 12:54:35 +02:00
redraincatching
0c8d646e2d
added missing function prototype of turn_random_number() (#1428)
trivial - cmake generated a warning that `ns_turn_msg.c` used a function
that had no prior prototype - most other files used the `turn_random()`
function but this uses `turn_random_number()` which has no prototype, so
i've added it to the header file
2024-02-10 20:57:33 -08:00
Jan Brasna
9dfe8d5128
Fix no-tls warning typo (#1426)
Trivial log warning typo introduced in #1256 corrected.
2024-02-09 20:15:19 -08:00
dominiquefournier
460cfa38af
Update SQLite.md (#1429)
Markdown is now proper
2024-02-09 20:14:49 -08:00
tyranron
94ade4b01f
Update Debian "bookworm" to 20240130 snapshot in Docker image 2024-02-01 12:33:57 +02:00
Michael Jones
2459db6266
Adjust wording in cmake message when prometheous cannot be found. (#1418) 2024-01-31 17:57:20 -08:00
tyranron
d274637d51
Update Alpine to 3.19.1 version in Docker image to fix CVE-2023-6129, CVE-2023-6237 and CVE-2024-0727 docker/4.6.2-r8 2024-01-29 12:07:35 +02:00
Michael Jones
da332ed9e7
Add the InsertBraces command for clang-format to ensure that all conditionals always have braces (#1408)
- Why? Because code where conditionals lack braces is much harder to read, and prone to indentation confusion.
- How? Just added an extra flag to .clang-format and re-ran clang-format on all the files.

I also moved .clang-format up to the top level of the repo so that it can be applied to the fuzz targets as well.
2024-01-27 16:38:40 -08:00
Pavel Punsky
168305494d
Exclude testing alpine Docker image on s390x arch on CI due to QEMU emulation problems (#1395, #1390)
Co-authored-by: Kai Ren <tyranron@gmail.com>
Co-authored-by: Michael Jones <jonesmz@users.noreply.github.com>
2024-01-24 13:08:08 +01:00
Pavel Punsky
87602ea2b6
Change minimal required cmake version to 3.16 (#1388) 2024-01-19 20:39:19 -08:00
Pavel Punsky
0afbc6204d
Replace HeapAlloc with malloc (#1378)
Use malloc/free instead of HeapAlloc/HeapFree
2024-01-18 21:08:28 -08:00
korayvt
348380f248
Added sessionID to some log lines (#1334)
Co-authored-by: KORAY VATANSEVER <koray.vatansever@turkcell.com.tr>

Some events are missed when logs are filtered by session ID. That's why I added the sessionID to some log lines.
2024-01-17 22:16:57 -08:00
dependabot[bot]
8aa827acd9
Bump actions/cache from 3 to 4 (#1385)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-17 22:15:38 -08:00
dependabot[bot]
9a8408725a
Bump github/codeql-action from 2 to 3 (#1386)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-17 22:14:57 -08:00
Kang Lin
d33112f84a
Update FlowChart (#1377) 2024-01-16 19:54:19 -08:00
Michael Jones
72ad1f01d1
Add clang-tidy, include-what-you-use, and msvc-analyzer github actions (#1363) 2024-01-16 19:49:30 -08:00
Kang Lin
05900adb2e
Doc: add flowchart (#1328)
The flowchart will be kept updated:

- Use [drawio](https://app.diagrams.net/) to edit.

1. Open [drawio](https://app.diagrams.net/) in brower
2. Menu → File → Open from ... → Device:

Select [FlowChart.html](FlowChart.html)

3. Edit flow chart
4. Export to svg:

Menu → File → Export as... → SVG...
2024-01-15 19:14:21 -08:00
Cybermilitia
7546c24b2f
Missing session ID in coturn logs for denied IP - 1330 (#1332)
Co-authored-by: CUMHUR KARAHAN <cumhur.karahan@turkcell.com.tr>

Added session id parameter to use it in "A peer IP denied in the range" logs. Besides, server ID has been made visible in this logs.
Before
```
023-08-24T17:23:17.221745770+03:00 stdout F 268472: : ERROR: A peer IP 169.254.38.68 denied in the range: 169.254.0.0-169.254.255.255
```

And after - new view:
```
2023-09-28T10:53:49.627778472+03:00 stdout F 1247: : ERROR: session 006000000000000004: A peer IP 172.21.198.41 denied in the range: 172.21.198.40-172.21.198.50 in server 6
```
2024-01-15 19:12:24 -08:00
Pavel Punsky
1f2bb51279
Update lukka/run-vcpkg@11 (#1374)
- update lukka/run-vcpkg@11
- vcpkg 2023-11-16 Release (new version was required anyway but taking somewhat newer but not latest)
- lukka/run-vcpkg@11 documentation states cache is not needed so deleted anything related to caching

Test plan: edited yaml file to run msvc job on PR and confirmed that it passes successfully
2024-01-15 19:06:31 -08:00
vuittont60
da6bc6b0c4
Fix typos (#1345) 2024-01-15 18:31:16 -08:00
Pavel Punsky
acf607ee50
Fix mingw build (#1376) 2024-01-15 18:26:54 -08:00
Michael Jones
8f2a482ad9
Add github action that runs tests with compiler sanitizers (#1370) 2024-01-15 18:26:31 -08:00
Pavel Punsky
c062d5e2af
Simplify macOS detection macros (#1372) 2024-01-15 15:18:35 -08:00
Pavel Punsky
f8e9892d3e
Fix potential null passed to function expecting nonnull (#1373) 2024-01-15 15:13:32 -08:00
Evgeny Khramtsov
7ecfb537e9
Only set MHD_USE_DUAL_STACK if IPv6 is available (#1362)
Co-authored-by: Evgeny Khramtsov <evgeny.khramtsov@ringcentral.com>

If IPv6 is not enabled during runtime, prometheus server fails to start with `EAFNOSUPPORT` because `MHD_USE_DUAL_STACK` is set unconditionally.

This PR fixes it. As a bonus, it also checks if libmicrohttpd is compiled with IPv6 support.
2024-01-14 12:49:59 -08:00
Pavel Punsky
9e7f31a84d
Remove unimplemented test folder reference from CMakeLists.txt (#1371) 2024-01-14 12:49:05 -08:00
tyranron
131ada68e6
Update Debian "bookworm" to 20240110 snapshot in Docker image 2024-01-11 12:24:29 +01:00
tyranron
d11451b902
Update Debian "bookworm" to 20231218 snapshot in Docker image 2023-12-19 13:37:11 +01:00
dependabot[bot]
1c7171b74a
Upgrade github/codeql-action from 2 to 3 version (#1348)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 13:27:53 +01:00