Debian Patches

Status for shadowsocks-libev/3.3.6+ds-4

Patch Description Author Forwarded Bugs Origin Last update
01-tests-test.sh-Explicitly-use-python3.patch tests/test.sh: Explicitly use python3 Boyuan Yang <byang@debian.org> not-needed 2020-02-23
02-Add-support-for-libjsonparser-dev.patch Add support for libjsonparser-dev Aron Xu <aron@debian.org> not-needed 2026-03-21
03-src-acl.c-Include-libcork-ipset.h-not-libcorkipset-i.patch src/acl.c: Include <libcork/ipset.h> not <libcorkipset/ipset.h>
Latest libcorkipset moved its headers under /usr/include/libcork/
directory. Use the new location instead.

This avoid #warning triggering build error due to -Werror=cpp.
Boyuan Yang <byang@debian.org> not-needed 2021-09-08
06-tests-disable-rc4-md5-test-which-is-disabled-through.patch tests: disable rc4/md5 test which is disabled through weak ciphers Aron Xu <aron@debian.org> no 2025-02-11
07-Enable-IP_BIND_ADDRESS_NO_PORT-for-outgoing-connecti.patch Enable IP_BIND_ADDRESS_NO_PORT for outgoing connections
This is a Linux only feature supported since 4.2, enabled it if
supported.

https://github.com/shadowsocks/shadowsocks-libev/issues/2930
Aron Xu <aron@debian.org> no 2025-02-12
08-Disable-stream-cipher-fast-path.patch Disable stream cipher in-place fast path
The in-place fast path in stream_encrypt() / stream_decrypt() reuses
the plaintext / ciphertext buffer as both input and output for non
Salsa20 stream ciphers (CFB / CTR via mbedtls). This produces incorrect
output and breaks the integration tests for aes-*-cfb and aes-*-ctr
(tests/aes.json, tests/aes-ctr.json). Drop the fast path so the
out-of-place buffer flow is always used; the AEAD and Salsa20 / ChaCha20
paths are unaffected.
Aron Xu <aron@debian.org> no 2026-03-27
09-Fix-const-qualifiers-for-glibc-2.43.patch Preserve const qualification in string searches glibc 2.43 can return a const-qualified pointer from strchr when its
argument is const-qualified. Both searches only read the returned data.
Keep that qualification rather than discarding it, which fails with
-Werror=discarded-qualifiers on current toolchains.
===================================================================
Hillwood Yang <hillwood@opensuse.org> no debian upstream, https://github.com/shadowsocks/shadowsocks-c/commit/59a6aca7597c46cd1d079631d3061d952fbd0d6e 2026-11-12
10-Fix-Mbed-TLS-3-AEAD-length.patch Fix failed assertion with Mbed TLS 3
diff --git a/src/aead.c b/src/aead.c
index 73349da..2414442 100644
Ayu <claire@ayu.land> no upstream, https://github.com/shadowsocks/shadowsocks-c/commit/60ad4ca4b5d1969e31db6efe6db4d82f88dbdbe7 2026-01-18
11-Reject-truncated-UDP-headers.patch Fix truncated UDP and JSON bounds checks
diff --git a/src/udprelay.c b/src/udprelay.c
index 5de3883..66a6297 100644
Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> no upstream, https://github.com/shadowsocks/shadowsocks-c/commit/835f653df8b39c9f9790414137eb271bc9678928 2026-05-12
12-Set-incoming-buffers-on-listening-sockets.patch Fix mishandling of incoming socket buffer. It must be set on the listening socket not the accepted socket.
diff --git a/src/local.c b/src/local.c
index fa1ca7b..51f62c4 100644
notsure2 <notsure2@protonmail.com> no upstream, https://github.com/shadowsocks/shadowsocks-c/commit/fc8750f3295fc0eaee400ef5a0e86216510dec44 2023-12-11
13-Manager-workdir-fallback.patch [ss-manager] Fall back to /tmp if workdir is /
diff --git a/src/manager.c b/src/manager.c
index 8a229d0..0c881f0 100644
Wen Sun <iwendellsun@gmail.com> no upstream, https://github.com/shadowsocks/shadowsocks-c/commit/c9e3eebbe2023715a8dadd5333472ac0ff2db104 2023-11-23
14-Harden-security-sensitive-input-handling.patch Harden security-sensitive input handling (#3045)
===================================================================
Max Lv <max.c.lv@gmail.com> no upstream, https://github.com/shadowsocks/shadowsocks-c/commit/5559eec939d47fb8524ccc0f6d63942e7cf5a45d 2026-07-15
15-Fix-PID-config-and-UDP-only-handling.patch Fix bugs found by clang-tidy triage; ratchet warning budget to zero (#3047)
diff --git a/src/cache.c b/src/cache.c
index 3fdf51d..ed251ed 100644
Max Lv <max.c.lv@gmail.com> no upstream, https://github.com/shadowsocks/shadowsocks-c/commit/dd2704c85729a0630acb0609344bf40cd3437777 2026-07-15
16-Accept-standard-base64-keys.patch Accept the standard base64 alphabet when decoding keys
diff --git a/src/base64.c b/src/base64.c
index 52247fc..cc3f01d 100644
Max Lv <max.c.lv@gmail.com> no upstream, https://github.com/shadowsocks/shadowsocks-c/commit/ab6e49381fdcc18e88e7f6f1c881334cd04e4ba9 2026-08-19
17-Keep-test-assertions-enabled.patch Fix CMake Warning
===================================================================
Pain <diracsvip@gmail.com> no upstream, https://github.com/shadowsocks/shadowsocks-c/commit/95b8a2ca7aca92aad05eff173ecf7970002d6aea
18-Bound-key-decoding-stack-use.patch Bound stack storage used to decode configured keys Backport the fixed-size buffers from the upstream key-decoding fix.
Keep the existing legacy-cipher API and omit the AEAD-2022-only changes.
Add regression coverage for long keys and both accepted base64 alphabets.
===================================================================
Max Lv <max.c.lv@gmail.com> not-needed backport, https://github.com/shadowsocks/shadowsocks-c/commit/98915c7828dcb006b9149ea1b124438437ec8ddf 2026-11-12
19-Use-supported-Bloom-filter-test-size.patch Use a filter size supported by the system libbloom ppbloom_init divides the requested entries equally between two filters.
Debian's libbloom requires at least 1000 entries per filter, so request
2000 total entries. Check initialization in each test before using it.
The failure was previously hidden by NDEBUG disabling test assertions.
===================================================================
Aron Xu <aron@debian.org> no 2026-11-12

All known versions for source package 'shadowsocks-libev'

Links