Debian Patches

Status for uwsgi/2.0.19.1-7.1

Patch Description Author Forwarded Bugs Origin Last update
020180403~6ecb6ef.patch plugins/glusterfs: Add path to the header files Related gluster commit removing this path from packageconfig variables:
http://git.gluster.org/cgit/glusterfs.git/commit/?id=684d6227
https://review.gluster.org/#/c/18576/
Jakub Jelen <jjelen@redhat.com> invalid debian upstream, https://github.com/unbit/uwsgi/commit/6ecb6ef 2020-12-12
020200622~00605eb.patch plugins/http: in raw_body mode don't overwrite hr->remains To avoid losing data Nick Brachet <nick@forge.ai> invalid upstream, https://github.com/unbit/uwsgi/commit/00605eb 2020-12-12
020200623~c3c0634.patch Add regression test for issue of log hiding Unhandled object error Arne Welzel <arne.welzel@gmail.com> yes upstream upstream, https://github.com/unbit/uwsgi/commit/c3c0634 2020-12-12
020200709~1888a1d.patch core/logging: Adding millis to format log Mack <maksym@fortmatic.com> invalid upstream, https://github.com/unbit/uwsgi/commit/1888a1d 2020-12-12
020200825~583592a.patch core/websockets: send close frame to client when uwsgi receives close frame Taem Park <taem.park@sendbird.com> invalid upstream, https://github.com/unbit/uwsgi/commit/583592a 2020-12-12
020201007~6a4e7e6.patch python: Use new Py_SET_SIZE API introduced in Python 3.9 Fixes compile error using Python 3.10 while keeping backwards compatibility Daniel <daniel@tohka.us> invalid upstream, https://github.com/unbit/uwsgi/commit/6a4e7e6 2020-12-12
020210221~0f2ef52.patch They are gone in PHP 8 and were inert since PHP 7. Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> invalid upstream, https://github.com/unbit/uwsgi/commit/0f2ef52 2021-05-28
0next20170920~7cf140a.patch for php7 return failures only on failure Leads to PHP application failing to initialize PHP sessions. Krzysztof Warzecha <kwarzecha7@gmail.com> yes upstream upstream, https://github.com/unbit/uwsgi/commit/7cf140a 2019-08-14
0next20191214~f8b4c28.patch php: Fix memory corruption for uwsgi_cache_* Ah the joys of variadic arguments in C...
.
So, when using zend_parse_parameters(),
PHP internally loops through the type specifiers
and accordingly uses va_arg() to get the corresponding argument.
.
Since the arguments are expected to be pointers
to the corresponding values,
the size of them *does* matter, because PHP simply writes
to the corresponding address with a size of size_t.
.
If we for example pass a pointer to a 32bit integer
and PHP writes 64 bits,
we have an overflow of 4 bytes.
.
From README.PARAMETER_PARSING_API in the PHP source tree:

> Please note that since version 7 PHP uses zend_long as integer type
> and zend_string with size_t as length,
> so make sure you pass zend_longs to "l" and size_t to strings length
> (i.e. for "s" you need to pass char * and size_t),
> not the other way round!
>
> Both mistakes might cause memory corruptions and segfaults:
> 1)
> char *str;
> long str_len; /* XXX THIS IS WRONG!! Use size_t instead. */
> zend_parse_parameters(ZEND_NUM_ARGS(), "s", &str, &str_len)
>
> 2)
> int num; /* XXX THIS IS WRONG!! Use zend_long instead. */
> zend_parse_parameters(ZEND_NUM_ARGS(), "l", &num)
.
To fix this, I changed the types accordingly
to use size_t and zend_long
if the PHP major version is >= 7.
aszlig <aszlig@nix.build> yes upstream upstream, https://github.com/unbit/uwsgi/commit/f8b4c28 2020-01-23
0next20201122~6d86c03.patch plugins/python: don't call PyEval_InitThreads on python >= 3.7 As it's already called in Py_Initialize() there. Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> yes upstream upstream, https://github.com/unbit/uwsgi/commit/6d86c03 2020-12-12
0next20201122~8c890c8.patch plugins/python: use Py_CompileString Instead of the deprecated
PyParser_SimpleParseString, PyParser_SimpleParseFile and PyNode_Compile.
While at it fixup a possible null pointer dereference
when uwsgi_open_and_read returns an empty string.
Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> invalid upstream, https://github.com/unbit/uwsgi/commit/8c890c8 2020-12-12
0next20201122~a282bbf.patch plugins: use PyObject_CallObject() instead of PyEval_CallObject() Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> invalid upstream, https://github.com/unbit/uwsgi/commit/a282bbf 2020-12-12
1001_avoid_setting_RPATH.patch Remove value assignments to environment variable LD_RUN_PATH Value assignment to environment variable LD_RUN_PATH leads to setting RPATH in
compiled binary/shared library.
.
And then Lintian reports about error (E: binary-or-shlib-defines-rpath).
Janos Guljas <janos@debian.org> not-needed 2016-02-08
1002_fix-reload-process-name.patch Preserve process name on reload Function uwsgi_reload is using uwsgi.binary_path as first argument in
execvp(). If the daemon is started through a symlink, uwsgi_reload will
use that link's target and change the process name. With a different process
name start-stop-daemon, used in init scripts, is unable to control the
daemon.
Janos Guljas <janos@debian.org> no 2013-04-23
1003_remove-php-libs.patch Remove PHP libraries when building PHP plugin. Janos Guljas <janos@debian.org> no 2016-02-08
1005_avoid_auto_ptr.patch Avoid deprecated std::auto_ptr Jonas Smedegaard <dr@jones.dk> no 2016-11-12
1006_avoid_xml2-config.patch use pkg-config for libxml2 xml2-config is deprecated Jonas Smedegaard <dr@jones.dk> no debian 2020-01-23
1009_fix_java_paths.patch Fix bogus quotes in java paths when passed via environment Jonas Smedegaard <dr@jones.dk> no debian 2015-03-11
1010_support_java_pass_includes.patch Support passing precomposed JVM INCLUDES string Needed for OpenJDK 8 requiring arch-specific include (see bug#760301). Jonas Smedegaard <dr@jones.dk> no 2016-02-13
1016_readline.patch Fix limit readline output to buffer size Juho Heikkinen <juho.heikkinen@f-secure.com> yes debian upstream 2018-10-02
1017_python3-compat.patch Python 3 compat Thomas Goirand <zigo@debian.org> yes 2020-02-27
2001_ensure_verbose_build.patch Ensure verbose build in the uwsgi build systems This gets compiler command line logs in the build log
which is nice for debugging.
Alexandre Rossi <alexandre.rossi@gmail.com> not-needed 2020-06-05
Add_support_for_chunked_encoding.patch preliminary implementation of #1428 This implements support for transfer-encoding: chuncked

===================================================================
Unbit <info@unbit.it> no 2021-06-11

All known versions for source package 'uwsgi'

Links