File kitty-CVE-2020-35605.patch of Package kitty

diff -urEbw kitty-0.16.0/kitty/graphics.c kitty-0.16.0.new/kitty/graphics.c
--- kitty-0.16.0/kitty/graphics.c	2020-01-28 04:18:00.000000000 +0100
+++ kitty-0.16.0.new/kitty/graphics.c	2021-01-04 13:33:29.534091913 +0100
@@ -359,7 +359,7 @@
             snprintf(fname, sizeof(fname)/sizeof(fname[0]), "%.*s", (int)g->payload_sz, payload);
             if (tt == 's') fd = shm_open(fname, O_RDONLY, 0);
             else fd = open(fname, O_CLOEXEC | O_RDONLY);
-            if (fd == -1) ABRT(EBADF, "Failed to open file %s for graphics transmission with error: [%d] %s", fname, errno, strerror(errno));
+            if (fd == -1) ABRT(EBADF, "Failed to open file for graphics transmission with error: [%d] %s", errno, strerror(errno));
             img->data_loaded = mmap_img_file(self, img, fd, g->data_sz, g->data_offset);
             safe_close(fd);
             if (tt == 't') {
openSUSE Build Service is sponsored by