Debian Patches

Status for ttyd/1.7.7-8

Patch Description Author Forwarded Bugs Origin Last update
upstream/0007-replace-sprintf-with-snprintf.patch replace sprintf with snprintf
to prevent buffer overflows
Shuanglei Tao <tsl0922@gmail.com> no 2026-02-22
upstream/0008-fix-once-exit-no-conn-not-waiting-for-process-to-exi.patch fix --once/--exit-no-conn not waiting for process to exit Shuanglei Tao <tsl0922@gmail.com> no 2026-03-18
upstream/0009-refactor-open_uri-to-prevent-potential-shell-injecti.patch refactor open_uri to prevent potential shell injection (#1498) call4pwn <e1316868676@dn.uleam.edu.ec> no 2026-03-17
upstream/0010-html-add-viewport-meta-tag-for-mobile-browsers-1564.patch html: add viewport meta tag for mobile browsers (#1564)
Fixes #1424
UTUBMIR <105543974+UTUBMIR@users.noreply.github.com> no 2026-08-12
debian/0001-build-without-sass-loader.patch Workaround missing build-deps on sass-loader with node-sass. Due to webpack plugin sass-loader is missing in Debian. We compile the
the .css files from .scss with `node-sass` commands in debian/rules.
.
And then replace .scss imports with .css imports in TSX files so that
we can drop missing sass-loader build-deps from webpack.config.js.
.
This patch should goes away with the `node-sass` commands in
debian/rules once we have webpack sass-loader plugin available in
Debian.

diff -Naurp ttyd.orig/html/src/components/modal/index.tsx ttyd/html/src/components/modal/index.tsx
Andrew Lee (李健秋) <ajqlee@debian.org>, with the help of an LLM. no
debian/0002-build-without-webpack-plugins.patch disable missing webpack plugins Due to eslint-webpack-plugin and css-minimizer-webpack-plugin are
missing in Debian. We disable them in the buildsystem.
.
Also tell webpack where to resolve node modules in Debian.

diff -Naurp ttyd.orig/html/webpack.config.js ttyd/html/webpack.config.js
Andrew Lee (李健秋) <ajqlee@debian.org>, with the help of an LLM. no
debian/0003-update-tsconfig.patch Adjust tsconfig.json to drop missing build-deps and set path This patch allows tsc and ts-loader to locate required node types in
Debian without depending on node-gts.

diff -Naurp ttyd.orig/html/tsconfig.json ttyd/html/tsconfig.json
Andrew Lee (李健秋) <ajqlee@debian.org>, with the help of an LLM. no
debian/0004-build-without-gulp.patch Add pure nodejs script to build src/html.h. Introduce html/build.js using stdlib zlib and fs to generate
src/html.h directly from webpack output.
.
This bypasses gulp and missing build-deps on it's plugins (gulp-gzip,
gulp-inline-source, through2) and without needing to modify or remove
gulpfile.js file.
.
This patch replace upstream's `node gulpfile.js` build-command with
`node html/build.js` command in debian/rules.

diff -Naurp ttyd.orig/html/build.js ttyd/html/build.js
Andrew Lee (李健秋) <ajqlee@debian.org>, with the help of an LLM. no
upstream/0001-fix-a-typo-in-the-man-page-1402.patch fix a typo in the man page (#1402) TwoF1nger <140991913+TwoF1nger@users.noreply.github.com> no 2024-11-26
upstream/0002-server-update-writable-message.patch server: update writable message Shuanglei Tao <tsl0922@gmail.com> no 2024-11-26
upstream/0003-html-upgrade-to-xterm-5.5.0.patch html: upgrade to xterm 5.5.0 Shuanglei Tao <tsl0922@gmail.com> no 2024-11-26
upstream/0004-html-add-closeOnDisconnect-option.patch html: add closeOnDisconnect option Eli Bosley <ekbosley@gmail.com> no 2025-01-10
upstream/0005-man-sync-client-options.patch man: sync client options Shuanglei Tao <tsl0922@gmail.com> no 2025-01-29
upstream/0006-add-srv-buf-size-option.patch add --srv-buf-size option bin <bin.pan@daocloud.io> no 2025-01-31

All known versions for source package 'ttyd'

Links