Skip to content

Commit df9d2a2

Browse files
author
taca
committed
archivers/ruby-zlib: add package version 3.2.3
This package is provided for fix security problem of zlib gem in Ruby. 3.3.2 (2026-03-05) * CVE-2026-27820: Buffer overflow vulnerability in Zlib::GzipReader <https://www.ruby-lang.org/en/news/2026/03/05/buffer-overflow-zlib-cve-2026-27820/> Zlib This module provides access to the zlib library. Zlib is designed to be a portable, free, general-purpose, legally unencumbered -- that is, not covered by any patents -- lossless data-compression library for use on virtually any computer hardware and operating system. The zlib compression library provides in-memory compression and decompression functions, including integrity checks of the uncompressed data. The zlib compressed data format is described in RFC 1950, which is a wrapper around a deflate stream which is described in RFC 1951. The library also supports reading and writing files in gzip (.gz) format with an interface similar to that of IO. The gzip format is described in RFC 1952 which is also a wrapper around a deflate stream. The zlib format was designed to be compact and fast for use in memory and on communications channels. The gzip format was designed for single-file compression on file systems, has a larger header than zlib to maintain directory information, and uses a different, slower check method than zlib.
1 parent 94a72d8 commit df9d2a2

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

archivers/ruby-zlib/DESCR

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Zlib
2+
3+
This module provides access to the zlib library. Zlib is designed to be a
4+
portable, free, general-purpose, legally unencumbered -- that is, not
5+
covered by any patents -- lossless data-compression library for use on
6+
virtually any computer hardware and operating system.
7+
8+
The zlib compression library provides in-memory compression and
9+
decompression functions, including integrity checks of the uncompressed
10+
data.
11+
12+
The zlib compressed data format is described in RFC 1950, which is a wrapper
13+
around a deflate stream which is described in RFC 1951.
14+
15+
The library also supports reading and writing files in gzip (.gz) format
16+
with an interface similar to that of IO. The gzip format is described in
17+
RFC 1952 which is also a wrapper around a deflate stream.
18+
19+
The zlib format was designed to be compact and fast for use in memory and on
20+
communications channels. The gzip format was designed for single-file
21+
compression on file systems, has a larger header than zlib to maintain
22+
directory information, and uses a different, slower check method than zlib.
23+
24+
This package is provided for fix security problem of zlib gem in Ruby.

archivers/ruby-zlib/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# $NetBSD: Makefile,v 1.7 2026/03/07 13:19:17 taca Exp $
2+
3+
DISTNAME= zlib-3.2.3
4+
CATEGORIES= archivers
5+
6+
MAINTAINER= pkgsrc-users@NetBSD.org
7+
HOMEPAGE= https://github.com/ruby/zlib
8+
COMMENT= Ruby interface for the zlib library
9+
LICENSE= 2-clause-bsd OR ruby-license
10+
11+
.include "../../lang/ruby/gem.mk"
12+
.include "../../devel/zlib/buildlink3.mk"
13+
.include "../../mk/bsd.pkg.mk"

archivers/ruby-zlib/PLIST

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@comment $NetBSD: PLIST,v 1.5 2026/03/07 13:19:17 taca Exp $
2+
${GEM_HOME}/cache/${GEM_NAME}.gem
3+
${GEM_EXTSDIR}/gem.build_complete
4+
${GEM_EXTSDIR}/zlib.${RUBY_DLEXT}
5+
${GEM_LIBDIR}/BSDL
6+
${GEM_LIBDIR}/COPYING
7+
${GEM_LIBDIR}/README.md
8+
${GEM_LIBDIR}/ext/zlib/extconf.rb
9+
${GEM_LIBDIR}/ext/zlib/zlib.c
10+
${GEM_LIBDIR}/lib/zlib.${RUBY_DLEXT}
11+
${GEM_LIBDIR}/zlib.gemspec
12+
${GEM_HOME}/specifications/${GEM_NAME}.gemspec

archivers/ruby-zlib/distinfo

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$NetBSD: distinfo,v 1.6 2026/03/07 13:19:17 taca Exp $
2+
3+
BLAKE2s (zlib-3.2.3.gem) = 477fd583c3f88df396d5923430be438c77d0b72ccb17f55d751550f05dc54d3f
4+
SHA512 (zlib-3.2.3.gem) = ee60c02ffbd25566f019f227dd361e57ad04d21e15d2dc94cd6e18df730c1f971b4dfd41c431f85983635dab65b695383ca625fee6ebf7533d00a07e3313bb85
5+
Size (zlib-3.2.3.gem) = 39424 bytes

0 commit comments

Comments
 (0)