Skip to content

Commit 297db8a

Browse files
chore: Release v0.2.22-rc.1
This release focuses on hardening, architectural refinement, and better testing capabilities. On the Hardening front, the ToxAV module has undergone significant security improvements. We have addressed a heap buffer overflow in RTP packet handling and fixed several logic bugs in the bandwidth controller and audio modules that could affect stability. Architectural Refactoring continues with the internalization of core system dependencies. The system clock, random number generation, and memory management are now accessed through abstract interfaces, further decoupling the core from OS-specific implementations and making the codebase more portable and testable.
1 parent 474e954 commit 297db8a

File tree

7 files changed

+49
-9
lines changed

7 files changed

+49
-9
lines changed

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
<a name="v0.2.22-rc.1"></a>
2+
3+
## v0.2.22-rc.1 (2026-02-05)
4+
5+
### Release notes
6+
7+
This release focuses on hardening, architectural refinement, and better testing capabilities.
8+
9+
On the Hardening front, the ToxAV module has undergone significant security improvements. We have addressed a heap buffer overflow in RTP packet handling and fixed several logic bugs in the bandwidth controller and audio modules that could affect stability.
10+
11+
Architectural Refactoring continues with the internalization of core system dependencies. The system clock, random number generation, and memory management are now accessed through abstract interfaces, further decoupling the core from OS-specific implementations and making the codebase more portable and testable.
12+
13+
#### Bug Fixes
14+
15+
- Prevent potential integer overflow in group chat handshake. ([8b467cc9](https://github.com/TokTok/c-toxcore/commit/8b467cc9634e97fdef2035f729756d45b93b9b1f))
16+
- potential division by zero in toxav and unsafe hex parsing ([fc4396ce](https://github.com/TokTok/c-toxcore/commit/fc4396cef61f4a5c277aa9f944766150a29f09cb))
17+
- correct printf format specifiers for unsigned integers ([46bfdc2d](https://github.com/TokTok/c-toxcore/commit/46bfdc2df769e9da8c6e1377493266fc70078e3e))
18+
- **DHT:** Correct node skipping logic timed out nodes. ([d5b5e879](https://github.com/TokTok/c-toxcore/commit/d5b5e879d0d57ecb5de91b8520461e7fd79c3ac1))
19+
- **autotools:** add `tox_log_level.h` to public headers list ([b79b7d43](https://github.com/TokTok/c-toxcore/commit/b79b7d4365c5835aafe2eb85b396440aa9d35911))
20+
- **group_chats:** fix sync packets reverting topics ([e206bffa](https://github.com/TokTok/c-toxcore/commit/e206bffa2dd25bffee1689a1605d4a78723f5eea))
21+
- **group_moderation:** allow validating unsorted sanction list signatures ([ece0e898](https://github.com/TokTok/c-toxcore/commit/ece0e89801282011397cb11b500670a016fb4284))
22+
- **toxav:**
23+
- fix heap buffer overflow in RTP video packet handling ([4fbd7c10](https://github.com/TokTok/c-toxcore/commit/4fbd7c10a97eadbcf97b149e954cba5a92237381))
24+
- harden video processing and fix large frame handling ([da1c13a2](https://github.com/TokTok/c-toxcore/commit/da1c13a2f90d86d4f9a1692f9ffb8112db48cb69))
25+
- fix multiple logic bugs in audio module ([47282528](https://github.com/TokTok/c-toxcore/commit/47282528883d7b2474b82bf1a5f977dc2c0aa6c4))
26+
- fix multiple bugs in bandwidth controller and add tests ([dc963d9a](https://github.com/TokTok/c-toxcore/commit/dc963d9a9904d0f3c459604065669a2d8e2bc522))
27+
- handle `vpx_image_alloc` failure ([3e22fd5c](https://github.com/TokTok/c-toxcore/commit/3e22fd5cc418153571cb9ce5947701dabd061cce))
28+
- **toxencryptsave:** Wipe salt and passkey after usage. ([7cefa93c](https://github.com/TokTok/c-toxcore/commit/7cefa93cf2974a47f43c068d47ed8a198781ec48))
29+
30+
#### Features
31+
32+
- Add a way to look up a file number by ID. ([b144e8db](https://github.com/TokTok/c-toxcore/commit/b144e8db10292d1016dfc2014a91a0eb03b49b8e))
33+
- Add a way to fetch groups by chat ID. ([849281ea](https://github.com/TokTok/c-toxcore/commit/849281ea08e764c63dad626abcc68ff583d24530))
34+
- Add Event Loop abstraction (Ev). ([2f87ac67](https://github.com/TokTok/c-toxcore/commit/2f87ac67b0b1ecaa8275e8c6d0f4cc97ca63c0c4))
35+
36+
#### Performance
37+
38+
- Add a timed limit of number of cookie requests. ([8f92e710](https://github.com/TokTok/c-toxcore/commit/8f92e710f30b55ec0c21152624301d22a8e98d0b))
39+
- **toxav:** optimize audio and video intermediate buffers by keeping them around ([d68d1d09](https://github.com/TokTok/c-toxcore/commit/d68d1d0950487815f7a0069107dfdc518735c1a6))
40+
141
<a name="v0.2.21"></a>
242

343
## v0.2.21 (2025-05-15)

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ set_source_files_properties(
4545
# versions in a synchronised way.
4646
set(PROJECT_VERSION_MAJOR "0")
4747
set(PROJECT_VERSION_MINOR "2")
48-
set(PROJECT_VERSION_PATCH "21")
48+
set(PROJECT_VERSION_PATCH "22")
4949
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
5050

5151
# set .so library version / following libtool scheme

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Process this file with autoconf to produce a configure script.
33

44
AC_PREREQ([2.65])
5-
AC_INIT([tox], [0.2.21])
5+
AC_INIT([tox], [0.2.22])
66
AC_CONFIG_AUX_DIR(configure_aux)
77
AC_CONFIG_SRCDIR([toxcore/net_crypto.c])
88
AM_INIT_AUTOMAKE([foreign 1.10 -Wall -Werror subdir-objects tar-ustar])

other/docker/pkgsrc/pkgsrc.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM toxchat/pkgsrc:latest
22

33
WORKDIR /work
4-
COPY . /work/c-toxcore-0.2.21
5-
RUN ["tar", "zcf", "c-toxcore.tar.gz", "c-toxcore-0.2.21"]
4+
COPY . /work/c-toxcore-0.2.22
5+
RUN ["tar", "zcf", "c-toxcore.tar.gz", "c-toxcore-0.2.22"]
66

77
WORKDIR /work/pkgsrc
88
COPY other/docker/pkgsrc/pkgsrc.patch /tmp/pkgsrc.patch

other/docker/pkgsrc/pkgsrc.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ index 70466704d..53a08ad08 100644
66
# $NetBSD: Makefile,v 1.6 2024/01/22 13:16:56 ryoon Exp $
77

88
-DISTNAME= toxcore-0.2.18
9-
+DISTNAME= toxcore-0.2.21
9+
+DISTNAME= toxcore-0.2.22
1010
PKGREVISION= 2
1111
CATEGORIES= chat
1212
MASTER_SITES= ${MASTER_SITE_GITHUB:=TokTok/}
@@ -26,6 +26,6 @@ index f0a5e4f04..4122b0867 100644
2626
lib/libtoxcore.so
2727
lib/libtoxcore.so.2
2828
-lib/libtoxcore.so.2.18.0
29-
+lib/libtoxcore.so.2.21.0
29+
+lib/libtoxcore.so.2.22.0
3030
lib/pkgconfig/toxcore.pc
3131
share/bash-completion/completions/tox-bootstrapd

so.version

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
# For a full reference see:
1212
# https://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info
1313

14-
CURRENT=23
14+
CURRENT=24
1515
REVISION=0
16-
AGE=21
16+
AGE=22

toxcore/tox.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ uint32_t tox_version_minor(void);
154154
* Incremented when bugfixes are applied without changing any functionality or
155155
* API or ABI.
156156
*/
157-
#define TOX_VERSION_PATCH 21
157+
#define TOX_VERSION_PATCH 22
158158

159159
uint32_t tox_version_patch(void);
160160

0 commit comments

Comments
 (0)