thrift.git
4 years ago[PATCH] THRIFT-5322: Guard against large string/binary lengths in Go
Yuxuan 'fishy' Wang [Thu, 10 Dec 2020 22:42:37 +0000 (14:42 -0800)]
[PATCH] THRIFT-5322: Guard against large string/binary lengths in Go

Client: go

In TBinaryProtocol.ReadString, TBinaryProtocol.ReadBinary,
TCompactProtocol.ReadString, and TCompactProtocol.ReadBinary, use
safeReadBytes to prevent from large allocation on malformed sizes.

    $ go test -bench=SafeReadBytes -benchmem
    BenchmarkSafeReadBytes/normal-12                  625057              1789 ns/op            2176 B/op          5 allocs/op
    BenchmarkSafeReadBytes/max-askedSize-12           545271              2236 ns/op           14464 B/op          7 allocs/op
    PASS

Gbp-Pq: Name THRIFT-5322.patch

4 years ago[PATCH] THRIFT-5270: Fix wrong int to string conversions
Yuxuan 'fishy' Wang [Sat, 29 Aug 2020 00:20:31 +0000 (17:20 -0700)]
[PATCH] THRIFT-5270: Fix wrong int to string conversions

Client: go

Starting from go 1.15, go test starts to complain about wrongly used int
to string conversions:

    ./field.go:58:83: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
    ./numeric.go:72:12: conversion from int64 to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
    ./json_protocol_test.go:612:92: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
    ./simple_json_protocol_test.go:685:96: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)

json_protocol_test and simple_json_protocol_test usages are actually
already in format arg so just remove the conversion is good enough.
field is no longer used anywhere so just removed it (there's one line of
commented out code in compact_protocol so remove that line as well). The
one in numeric.go is actually a bug. We didn't set sValue correctly in
NewNumericFromI64 and NewNumericFromI32 functions.

Gbp-Pq: Name Fix_wrong_int_to_string_conversions.patch

4 years agofix tests FTBFS with atomic link
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
fix tests FTBFS with atomic link

Forwarded: no
Last-Update: 2019-12-08

On armel and at least mipsel needs atomic to link with.

Gbp-Pq: Name link_tests_atomic.patch

4 years agodon't try missing NewMockThriftTest test
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
don't try missing NewMockThriftTest test

Last-Update: 2019-11-30

Upstream doesn't ship NewMockThriftTest hence don't try to use it.

Gbp-Pq: Name missing_go_test.patch

4 years agoput back files used for testing
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
put back files used for testing

Last-Update: 2019-10-23

Needs for testing and while present up to 0.12.0 and in Git, missed from
the source of 0.13.0 release.

Gbp-Pq: Name add_missing_test_files.patch

4 years agodon't use gradlew in any way
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
don't use gradlew in any way

Last-Update: 2019-10-23

Not enabled for compilation, but clean would like to use it anyway.

Gbp-Pq: Name no_gradlew.patch

4 years agorun simple Go test only
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
run simple Go test only

Last-Update: 2019-10-05

Race testing is available on amd64, ppc64le and arm64 only.

Gbp-Pq: Name no_go_race.patch

4 years agoPHP tests are not phpunit 8 compatible
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
PHP tests are not phpunit 8 compatible

Last-Update: 2019-09-22

Disable those for now.

Gbp-Pq: Name disable_php_testing.patch

4 years ago<short summary of the patch>
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
<short summary of the patch>

TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.

thrift (0.12.0-1) experimental; urgency=medium

  * New major upstream release.

Gbp-Pq: Name no_composer_install.patch

4 years agodisable failing tests
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
disable failing tests

Last-Update: 2019-10-05

Gbp-Pq: Name disable_failing_tests.patch

4 years agodon't test servers that need shmem
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
don't test servers that need shmem

Last-Update: 2017-09-11

As buildd's don't have shmem enabled / mounted, tests would fail.

Gbp-Pq: Name no_shmem.patch

4 years agoDisable TLS v1.0 and TLS v1.1 connection tests
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
Disable TLS v1.0 and TLS v1.1 connection tests

Bug-Debian: https://bugs.debian.org/859128
Last-Update: 2017-09-10

TLS v1.0 and TLS v1.1 protocols are disabled as of OpenSSL 1.1.0f-4, see:
https://packages.qa.debian.org/o/openssl/news/20170806T233554Z.html

Gbp-Pq: Name disable_TLSv1_0_and_TLSv1_1.patch

4 years ago<short summary of the patch>
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
<short summary of the patch>

Last-Update: 2019-01-09

Gbp-Pq: Name broken_boost_1.62.patch

4 years agogolang dependencies already installed as build dependency
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
golang dependencies already installed as build dependency

Forwarded: no
Last-Update: 2019-12-01

Gbp-Pq: Name golang_dependency_installed.patch

4 years agodo not use bundler as per Ruby policy
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
do not use bundler as per Ruby policy

Bug-Debian: https://bugs.debian.org/804668
Last-Update: 2019-10-23

Gbp-Pq: Name no_bundler_use.patch

4 years agonode is called nodejs in Debian
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
node is called nodejs in Debian

Last-Update: 2019-10-23

Use the proper binary name.

Gbp-Pq: Name node_is_nodejs.patch

4 years agothrift (0.13.0-7) unstable; urgency=medium
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
thrift (0.13.0-7) unstable; urgency=medium

  * Remove python3-thrift-dbg package (closes: #994384).
  * Update Standards-Version to 4.6.0 .
  * Sync with Ubuntu.

  [ Lucas Kanashiro <kanashiro@ubuntu.com> ]
  * d/p/THRIFT-5318_support_php8.patch: Backport upstream patch to add support
    for PHP 8 (LP: #1940473).
  * d/rules: export GO111MODULE=off, this will make go.mod file not mandatory.

[dgit import unpatched thrift 0.13.0-7]

4 years agoImport thrift_0.13.0-7.debian.tar.xz
Laszlo Boszormenyi (GCS) [Fri, 24 Sep 2021 15:18:04 +0000 (16:18 +0100)]
Import thrift_0.13.0-7.debian.tar.xz

[dgit import tarball thrift 0.13.0-7 thrift_0.13.0-7.debian.tar.xz]

6 years agoImport thrift_0.13.0.orig.tar.gz
Laszlo Boszormenyi (GCS) [Sun, 1 Dec 2019 10:46:55 +0000 (10:46 +0000)]
Import thrift_0.13.0.orig.tar.gz

[dgit import orig thrift_0.13.0.orig.tar.gz]