Skip to content

Commit 6af9287

Browse files
committed
Release 1.2.2
1 parent de19405 commit 6af9287

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ package(default_visibility = ["//visibility:public"])
3030

3131
licenses(["notice"])
3232

33-
SNAPPY_VERSION = (1, 1, 10)
33+
SNAPPY_VERSION = (1, 2, 2)
3434

3535
config_setting(
3636
name = "windows",

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828

2929
cmake_minimum_required(VERSION 3.10)
30-
project(Snappy VERSION 1.2.1 LANGUAGES C CXX)
30+
project(Snappy VERSION 1.2.2 LANGUAGES C CXX)
3131

3232
# C++ standard can be overridden when this is used as a sub-project.
3333
if(NOT CMAKE_CXX_STANDARD)

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module(
22
name = "snappy",
3-
version = "1.2.1",
3+
version = "1.2.2",
44
compatibility_level = 1,
55
)
66

NEWS

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
Snappy v1.2.2, Mar 26th 2025:
2+
3+
* We added a new compression level in v1.2.1 which compresses a bit
4+
denser but slower. Decompression speed should be even faster with it.
5+
6+
* We fixed a very old issue of data corruption when compressed size
7+
exceeds 4GB. This can happen when you compress data close to 4GB
8+
and it's incompressible, for example, random data.
9+
10+
* Started to use minimum CMake 3.10 because older ones are not
11+
planned to be supported.
12+
13+
* Various other small fixes and performance improvements (especially
14+
for clang).
15+
116
Snappy v1.1.10, Mar 8th 2023:
217

318
* Performance improvements

snappy.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,8 @@ constexpr uint32_t CalculateNeeded(uint8_t tag) {
16901690
#if __cplusplus >= 201402L
16911691
constexpr bool VerifyCalculateNeeded() {
16921692
for (int i = 0; i < 1; i++) {
1693-
if (CalculateNeeded(i) != (char_table[i] >> 11) + 1) return false;
1693+
if (CalculateNeeded(i) != static_cast<uint32_t>((char_table[i] >> 11)) + 1)
1694+
return false;
16941695
}
16951696
return true;
16961697
}

0 commit comments

Comments
 (0)