Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pylsqpack for
openSUSE:Factory checked in at 2022-10-06 07:41:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pylsqpack (Old)
and /work/SRC/openSUSE:Factory/.python-pylsqpack.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pylsqpack"
Thu Oct 6 07:41:45 2022 rev:2 rq:1008124 version:0.3.16
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pylsqpack/python-pylsqpack.changes
2021-02-26 21:59:17.207812145 +0100
+++
/work/SRC/openSUSE:Factory/.python-pylsqpack.new.2275/python-pylsqpack.changes
2022-10-06 07:41:55.916650952 +0200
@@ -1,0 +2,20 @@
+Wed Oct 5 00:34:18 UTC 2022 - Yogalakshmi Arunachalam <[email protected]>
+
+- Update to v0.3.16
+ * Fix memory leaks due to missing Py_DECREF calls
+ * free DecoderObject's and EncoderObject's memory
+ * Revert "Allocate encoding / decoding buffers of the heap (fixes: #14)"
+
+- Update to v0.3.15
+ * Allocate encoding / decoding buffers of the heap (fixes: #14)
+
+- Update to 0.3.14
+ * Build wheels for arm64 on macos
+ * [docs] update copyright years
+
+- Update to 0.3.13
+ * [package] use pyproject.toml, don't build for musllinux
+ * Support Python 3.10, drop Python 3.6
+ * [vendor] update ls-qpack to version 1.0.3
+
+-------------------------------------------------------------------
Old:
----
pylsqpack-0.3.12.tar.gz
New:
----
pylsqpack-0.3.16.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pylsqpack.spec ++++++
--- /var/tmp/diff_new_pack.x1hSzF/_old 2022-10-06 07:41:57.596654692 +0200
+++ /var/tmp/diff_new_pack.x1hSzF/_new 2022-10-06 07:41:57.600654700 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-pylsqpack
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pylsqpack
-Version: 0.3.12
+Version: 0.3.16
Release: 0
Summary: Python ls-qpack QPACK library
License: BSD-3-Clause
++++++ pylsqpack-0.3.12.tar.gz -> pylsqpack-0.3.16.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pylsqpack-0.3.12/LICENSE new/pylsqpack-0.3.16/LICENSE
--- old/pylsqpack-0.3.12/LICENSE 2021-02-14 00:57:54.000000000 +0100
+++ new/pylsqpack-0.3.16/LICENSE 2022-03-30 00:37:05.000000000 +0200
@@ -1,4 +1,4 @@
-Copyright (c) 2019-2020 Jeremy Lain??.
+Copyright (c) 2019-2021 Jeremy Lain??.
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pylsqpack-0.3.12/PKG-INFO
new/pylsqpack-0.3.16/PKG-INFO
--- old/pylsqpack-0.3.12/PKG-INFO 2021-02-14 00:57:56.000000000 +0100
+++ new/pylsqpack-0.3.16/PKG-INFO 2022-03-30 00:37:10.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pylsqpack
-Version: 0.3.12
+Version: 0.3.16
Summary: Python wrapper for the ls-qpack QPACK library
Home-page: https://github.com/aiortc/pylsqpack
Author: Jeremy Lain??
@@ -43,8 +43,8 @@
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Internet :: WWW/HTTP
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pylsqpack-0.3.12/docs/conf.py
new/pylsqpack-0.3.16/docs/conf.py
--- old/pylsqpack-0.3.12/docs/conf.py 2021-02-14 00:57:54.000000000 +0100
+++ new/pylsqpack-0.3.16/docs/conf.py 2022-03-30 00:37:05.000000000 +0200
@@ -49,7 +49,7 @@
# General information about the project.
project = 'pylsqpack'
-copyright = u'2019-2020, Jeremy Lain??'
+copyright = u'2019-2021, Jeremy Lain??'
author = u'Jeremy Lain??'
# The version info for the project you're documenting, acts as replacement for
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pylsqpack-0.3.12/setup.py
new/pylsqpack-0.3.16/setup.py
--- old/pylsqpack-0.3.12/setup.py 2021-02-14 00:57:54.000000000 +0100
+++ new/pylsqpack-0.3.16/setup.py 2022-03-30 00:37:05.000000000 +0200
@@ -41,10 +41,10 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
+ "Programming Language :: Python :: 3.10",
"Topic :: Internet :: WWW/HTTP",
],
package_dir={"": "src"},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pylsqpack-0.3.12/src/pylsqpack/about.py
new/pylsqpack-0.3.16/src/pylsqpack/about.py
--- old/pylsqpack-0.3.12/src/pylsqpack/about.py 2021-02-14 00:57:54.000000000
+0100
+++ new/pylsqpack-0.3.16/src/pylsqpack/about.py 2022-03-30 00:37:05.000000000
+0200
@@ -4,4 +4,4 @@
__summary__ = "Python wrapper for the ls-qpack QPACK library"
__title__ = "pylsqpack"
__uri__ = "https://github.com/aiortc/pylsqpack"
-__version__ = "0.3.12"
+__version__ = "0.3.16"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pylsqpack-0.3.12/src/pylsqpack/binding.c
new/pylsqpack-0.3.16/src/pylsqpack/binding.c
--- old/pylsqpack-0.3.12/src/pylsqpack/binding.c 2021-02-14
00:57:54.000000000 +0100
+++ new/pylsqpack-0.3.16/src/pylsqpack/binding.c 2022-03-30
00:37:05.000000000 +0200
@@ -109,6 +109,8 @@
STAILQ_REMOVE_HEAD(&self->pending_blocks, entries);
header_block_free(hblock);
}
+
+ Py_TYPE(self)->tp_free((PyObject *) self);
}
static PyObject*
@@ -133,6 +135,7 @@
if (!hblock->blocked) {
value = PyLong_FromUnsignedLongLong(hblock->stream_id);
PyList_Append(list, value);
+ Py_DECREF(value);
}
}
return list;
@@ -153,7 +156,7 @@
uint64_t stream_id;
const unsigned char *data;
Py_ssize_t data_len;
- PyObject *list;
+ PyObject *control, *headers, *tuple;
size_t dec_len = DEC_BUF_SZ;
enum lsqpack_read_header_status status;
struct header_block *hblock;
@@ -193,14 +196,15 @@
return NULL;
}
- list = hlist_to_headers(hblock->hlist);
+ control = PyBytes_FromStringAndSize((const char*)self->dec_buf, dec_len);
+ headers = hlist_to_headers(hblock->hlist);
header_block_free(hblock);
- return PyTuple_Pack(
- 2,
- PyBytes_FromStringAndSize((const char*)self->dec_buf, dec_len),
- list
- );
+ tuple = PyTuple_Pack(2, control, headers);
+ Py_DECREF(control);
+ Py_DECREF(headers);
+
+ return tuple;
}
PyDoc_STRVAR(Decoder_feed_header__doc__,
@@ -216,7 +220,7 @@
{
char *kwlist[] = {"stream_id", NULL};
uint64_t stream_id;
- PyObject *list;
+ PyObject *control, *headers, *tuple;
size_t dec_len = DEC_BUF_SZ;
enum lsqpack_read_header_status status;
struct header_block *hblock;
@@ -262,15 +266,16 @@
return NULL;
}
- list = hlist_to_headers(hblock->hlist);
+ control = PyBytes_FromStringAndSize((const char*)self->dec_buf, dec_len);
+ headers = hlist_to_headers(hblock->hlist);
STAILQ_REMOVE(&self->pending_blocks, hblock, header_block, entries);
header_block_free(hblock);
- return PyTuple_Pack(
- 2,
- PyBytes_FromStringAndSize((const char*)self->dec_buf, dec_len),
- list
- );
+ tuple = PyTuple_Pack(2, control, headers);
+ Py_DECREF(control);
+ Py_DECREF(headers);
+
+ return tuple;
}
PyDoc_STRVAR(Decoder_resume_header__doc__,
@@ -354,6 +359,7 @@
Encoder_dealloc(EncoderObject *self)
{
lsqpack_enc_cleanup(&self->enc);
+ Py_TYPE(self)->tp_free((PyObject *) self);
}
static PyObject*
@@ -441,11 +447,13 @@
pfx_off = PREFIX_MAX_SIZE - pfx_len;
memcpy(self->hdr_buf + pfx_off, self->pfx_buf, pfx_len);
- return PyTuple_Pack(
- 2,
- PyBytes_FromStringAndSize((const char*)self->enc_buf, enc_off),
- PyBytes_FromStringAndSize((const char*)self->hdr_buf + pfx_off,
hdr_off - pfx_off)
- );
+ name = PyBytes_FromStringAndSize((const char*)self->enc_buf, enc_off);
+ value = PyBytes_FromStringAndSize((const char*)self->hdr_buf + pfx_off,
hdr_off - pfx_off);
+ tuple = PyTuple_Pack(2, name, value);
+ Py_DECREF(name);
+ Py_DECREF(value);
+
+ return tuple;
}
PyDoc_STRVAR(Encoder_encode__doc__,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pylsqpack-0.3.12/src/pylsqpack.egg-info/PKG-INFO
new/pylsqpack-0.3.16/src/pylsqpack.egg-info/PKG-INFO
--- old/pylsqpack-0.3.12/src/pylsqpack.egg-info/PKG-INFO 2021-02-14
00:57:56.000000000 +0100
+++ new/pylsqpack-0.3.16/src/pylsqpack.egg-info/PKG-INFO 2022-03-30
00:37:09.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pylsqpack
-Version: 0.3.12
+Version: 0.3.16
Summary: Python wrapper for the ls-qpack QPACK library
Home-page: https://github.com/aiortc/pylsqpack
Author: Jeremy Lain??
@@ -43,8 +43,8 @@
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Internet :: WWW/HTTP
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pylsqpack-0.3.12/vendor/ls-qpack/.cirrus.yml
new/pylsqpack-0.3.16/vendor/ls-qpack/.cirrus.yml
--- old/pylsqpack-0.3.12/vendor/ls-qpack/.cirrus.yml 2021-02-14
00:57:55.000000000 +0100
+++ new/pylsqpack-0.3.16/vendor/ls-qpack/.cirrus.yml 2022-03-30
00:37:07.000000000 +0200
@@ -1,5 +1,5 @@
freebsd_instance:
- image: freebsd-11-2-release-amd64
+ image: freebsd-12-1-release-amd64
task:
install_script: pkg install -y cmake bash perl5
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pylsqpack-0.3.12/vendor/ls-qpack/lsqpack.c
new/pylsqpack-0.3.16/vendor/ls-qpack/lsqpack.c
--- old/pylsqpack-0.3.12/vendor/ls-qpack/lsqpack.c 2021-02-14
00:57:55.000000000 +0100
+++ new/pylsqpack-0.3.16/vendor/ls-qpack/lsqpack.c 2022-03-30
00:37:07.000000000 +0200
@@ -1252,6 +1252,7 @@
if (qenc_hinfo_at_risk(enc, hinfo))
*header_flags |= LSQECH_REF_AT_RISK;
}
+ enc->qpe_bytes_out += dst - end + sz;
return dst - end + sz;
}
@@ -1270,6 +1271,7 @@
enc->qpe_flags &= ~LSQPACK_ENC_HEADER;
if (header_flags)
*header_flags = enc->qpe_cur_header.flags;
+ enc->qpe_bytes_out += 2;
return 2;
}
else
@@ -2950,8 +2952,15 @@
float
lsqpack_dec_ratio (const struct lsqpack_dec *dec)
{
- if (dec->qpd_bytes_in)
- return (float) dec->qpd_bytes_in / (float) dec->qpd_bytes_out;
+ float ratio;
+
+ if (dec->qpd_bytes_out)
+ {
+ ratio = (float) dec->qpd_bytes_in / (float) dec->qpd_bytes_out;
+ D_DEBUG("bytes in: %u; bytes out: %u, ratio: %.3f",
+ dec->qpd_bytes_out, dec->qpd_bytes_in, ratio);
+ return ratio;
+ }
else
return 0;
}
@@ -4252,6 +4261,7 @@
if (p > dec_buf)
{
*dec_buf_sz = p - dec_buf;
+ dec->qpd_bytes_in += p - dec_buf;
return 0;
}
}
@@ -4499,6 +4509,7 @@
{
D_DEBUG("wrote ICI: count=%u", count);
dec->qpd_largest_known_id = dec->qpd_last_id;
+ dec->qpd_bytes_in += p - buf;
return p - buf;
}
else
@@ -4557,6 +4568,7 @@
D_DEBUG("cancelled stream %"PRIu64"; generate instruction of %u bytes",
read_ctx->hbrc_stream_id, (unsigned) (p - buf));
destroy_header_block_read_ctx(dec, read_ctx);
+ dec->qpd_bytes_in += p - buf;
return p - buf;
}
else
@@ -4589,6 +4601,7 @@
{
D_DEBUG("generate Cancel Stream %"PRIu64" instruction of %u bytes",
stream_id, (unsigned) (p - buf));
+ dec->qpd_bytes_in += p - buf;
return p - buf;
}
else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pylsqpack-0.3.12/vendor/ls-qpack/lsqpack.h
new/pylsqpack-0.3.16/vendor/ls-qpack/lsqpack.h
--- old/pylsqpack-0.3.12/vendor/ls-qpack/lsqpack.h 2021-02-14
00:57:55.000000000 +0100
+++ new/pylsqpack-0.3.16/vendor/ls-qpack/lsqpack.h 2022-03-30
00:37:07.000000000 +0200
@@ -44,7 +44,7 @@
#define LSQPACK_MAJOR_VERSION 1
#define LSQPACK_MINOR_VERSION 0
-#define LSQPACK_PATCH_VERSION 2
+#define LSQPACK_PATCH_VERSION 3
/** Let's start with four billion for now */
typedef unsigned lsqpack_abs_id_t;
@@ -678,7 +678,7 @@
unsigned qpd_cur_capacity;
unsigned qpd_max_risked_streams;
unsigned qpd_max_entries;
- /* Used to calculate estimated compression ratio. Note that the `out'
+ /* Used to calculate estimated compression ratio. Note that the `in'
* part contains bytes sent on the decoder stream, as it also counts
* toward the overhead.
*/