public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/xfig] epel10: Merge remote-tracking branch 'origin/f38' into rawhide
Date: Sat, 30 May 2026 14:26:11 GMT [thread overview]
Message-ID: <178015117151.1.3276499379883916430.rpms-xfig-9319ea276201@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/xfig
Branch : epel10
Commit : 9319ea2762010d6fd996e74d9335747afc2604c8
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date : 2024-01-18T16:38:59+09:00
Stats : +87/-2 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/xfig/c/9319ea2762010d6fd996e74d9335747afc2604c8?branch=epel10
Log:
Merge remote-tracking branch 'origin/f38' into rawhide
---
diff --git a/Fix-exporting-only-active-layers-ticket-163.patch b/Fix-exporting-only-active-layers-ticket-163.patch
new file mode 100644
index 0000000..dabc1c1
--- /dev/null
+++ b/Fix-exporting-only-active-layers-ticket-163.patch
@@ -0,0 +1,29 @@
+From a4a2f3f3aa29ec7fc84f9d782306b37bbe75025c Mon Sep 17 00:00:00 2001
+From: Thomas Loimer <thomas.loimer@tuwien.ac.at>
+Date: Sun, 31 Dec 2023 22:51:29 +0100
+Subject: [PATCH] Fix exporting only active layers, ticket #163
+
+---
+ src/u_print.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/u_print.c b/src/u_print.c
+index c24c096..57921b3 100644
+--- a/src/u_print.c
++++ b/src/u_print.c
+@@ -861,10 +861,10 @@ build_layer_list(char *layers)
+ }
+ if (len < notlen && firstyes != -1) {
+ /* use list of layers TO print */
+- sprintf(layers," -D +%s ",list);
++ sprintf(layers, "+%s", list);
+ } else if (firstno != -1){
+ /* use list of layers to NOT print */
+- sprintf(layers," -D -%s ",notlist);
++ sprintf(layers, "-%s", notlist);
+ }
+ }
+
+--
+2.39.2
+
diff --git a/Sanitize-a-call-to-realloc-ticket-165.patch b/Sanitize-a-call-to-realloc-ticket-165.patch
new file mode 100644
index 0000000..94b8246
--- /dev/null
+++ b/Sanitize-a-call-to-realloc-ticket-165.patch
@@ -0,0 +1,44 @@
+From 68403622a6f6c7d74f73e38989cfc0ed86fb83fc Mon Sep 17 00:00:00 2001
+From: Thomas Loimer <thomas.loimer@tuwien.ac.at>
+Date: Sun, 31 Dec 2023 15:18:45 +0100
+Subject: [PATCH] Sanitize a call to realloc(), ticket #165
+
+---
+ src/u_print.c | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/src/u_print.c b/src/u_print.c
+index 2ed385f..c24c096 100644
+--- a/src/u_print.c
++++ b/src/u_print.c
+@@ -130,7 +130,7 @@ start_argumentlist(char *arg[restrict], char argbuf[restrict][ARGBUF_SIZE],
+ arg[0] = fig2dev_cmd;
+ arg[1] = "-L";
+ *a = 2; /* arg[2] will be the output language */
+- if (appres.magnification < 99.99 | appres.magnification > 100.01) {
++ if (appres.magnification < 99.99 || appres.magnification > 100.01) {
+ int n;
+ arg[++*a] = "-m";
+ n = snprintf(argbuf[++*b], ARGBUF_SIZE,
+@@ -531,6 +531,7 @@ print_export(char *file, int xoff, int yoff, char *backgrnd, char *transparent,
+ } else if (cur_exp_lang == LANG_PSTEX ||
+ cur_exp_lang == LANG_PDFTEX) {
+ size_t len = strlen(outfile);
++ char *s;
+
+ /* Options were already set above
+ - output the first file */
+@@ -544,8 +545,9 @@ print_export(char *file, int xoff, int yoff, char *backgrnd, char *transparent,
+ goto free_outfile;
+ }
+ memcpy(tmp_name, outfile, len + 1);
+- if (!realloc(outfile, len + 3)) {
++ if (!(outfile = realloc(s = outfile, len + 3))) {
+ ret = 1;
++ outfile = s; /* for free(outfile) below */
+ goto free_tmp_name;
+ }
+ strcpy(outfile + len, "_t");
+--
+2.39.2
+
diff --git a/xfig.spec b/xfig.spec
index 8e29f6d..35b688f 100644
--- a/xfig.spec
+++ b/xfig.spec
@@ -3,13 +3,20 @@
Summary: An X Window System tool for drawing basic vector graphics
Name: xfig
Version: 3.2.9
-Release: 1%{?dist}
+Release: 2%{?dist}
License: MIT
URL: https://en.wikipedia.org/wiki/Xfig
Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz
Source1: xfig-icons.tar.gz
Source2: xfig.desktop
Source3: xfig.appdata.xml
+# https://sourceforge.net/p/mcj/tickets/165/
+# https://bugzilla.redhat.com/show_bug.cgi?id=2252679
+# https://sourceforge.net/p/mcj/xfig/ci/68403622a6f6c7d74f73e38989cfc0ed86fb83fc/
+Patch0: Sanitize-a-call-to-realloc-ticket-165.patch
+# https://sourceforge.net/p/mcj/tickets/163/
+# https://sourceforge.net/p/mcj/xfig/ci/a4a2f3f3aa29ec7fc84f9d782306b37bbe75025c/
+Patch1: Fix-exporting-only-active-layers-ticket-163.patch
#Patch0: xfig-3.2.5a-default-apps.patch
#Patch1: xfig-3.2.5-urwfonts.patch
@@ -108,7 +115,12 @@ appstream-util validate-relax --nonet \
%changelog
-* Sat Aug 26 2023 Ranjan Maitra <aarem@fedoraproject.org> - 3.2.9
+* Thu Jan 18 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.2.9-2
+- Backport upstream patches for upstream 2 issues
+ - Fix exporting only active layers
+ - Sanitize a call to realloc (redhat #2252679)
+
+* Sat Aug 26 2023 Ranjan Maitra <aarem@fedoraproject.org> - 3.2.9-1
- New upstream release 3.2.9
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.8b-4
reply other threads:[~2026-05-30 14:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178015117151.1.3276499379883916430.rpms-xfig-9319ea276201@fedoraproject.org \
--to=mtasaka@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox