Skip to content

Commit d92f98e

Browse files
2 parents 418276c + 7004da4 commit d92f98e

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/stb_image.h b/src/stb_image.h
2+
index f12c30b..526281c 100644
3+
--- a/src/stb_image.h
4+
+++ b/src/stb_image.h
5+
@@ -1534,6 +1534,7 @@ static unsigned char *stbi__convert_format(unsigned char *data, int img_n, int r
6+
int i,j;
7+
unsigned char *good;
8+
9+
+ if (data == NULL) return data;
10+
if (req_comp == img_n) return data;
11+
STBI_ASSERT(req_comp >= 1 && req_comp <= 4);
12+

pkgs/by-name/li/libsixel/package.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ stdenv.mkDerivation rec {
1919
sha256 = "1nny4295ipy4ajcxmmh04c796hcds0y7z7rv3qd17mj70y8j0r2d";
2020
};
2121

22+
patches = [
23+
# https://github.com/NixOS/nixpkgs/issues/160670
24+
./fix-CVE-2021-45340.patch
25+
];
26+
2227
buildInputs = [
2328
gdk-pixbuf
2429
gd
@@ -43,7 +48,7 @@ stdenv.mkDerivation rec {
4348
meta = with lib; {
4449
description = "SIXEL library for console graphics, and converter programs";
4550
homepage = "https://github.com/libsixel/libsixel";
46-
maintainers = [ ];
51+
maintainers = with lib.maintainers; [ hzeller ];
4752
license = licenses.mit;
4853
platforms = platforms.unix;
4954
};

0 commit comments

Comments
 (0)