public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/xfig] epel10: Add forgotten patch
@ 2026-05-30 14:25 Stanislav Ochotnicky
  0 siblings, 0 replies; only message in thread
From: Stanislav Ochotnicky @ 2026-05-30 14:25 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/xfig
Branch : epel10
Commit : 1f21f73f7ee9c39530e6f709a46c34d1874008a2
Author : Stanislav Ochotnicky <sochotnicky@redhat.com>
Date   : 2010-12-06T10:13:52+01:00
Stats  : +22/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/xfig/c/1f21f73f7ee9c39530e6f709a46c34d1874008a2?branch=epel10

Log:
Add forgotten patch

---
diff --git a/xfig-3.2.5b-fix-fig-buffer-overflow.patch b/xfig-3.2.5b-fix-fig-buffer-overflow.patch
new file mode 100644
index 0000000..77b7224
--- /dev/null
+++ b/xfig-3.2.5b-fix-fig-buffer-overflow.patch
@@ -0,0 +1,22 @@
+--- w_msgpanel.c
++++ w_msgpanel.c	2010-12-03 14:21:07.931926127 +0000
+@@ -60,7 +60,7 @@ DeclareStaticArgs(12);
+ /* for the popup message (file_msg) window */
+ 
+ static int	file_msg_length=0;
+-static char	tmpstr[300];
++static char	tmpstr[512];
+ static Widget	file_msg_panel,
+ 		file_msg_win, file_msg_dismiss;
+ 
+@@ -582,8 +582,8 @@ file_msg(char *format,...)
+     }
+ 
+     va_start(ap, format);
+-    /* format the string */
+-    vsprintf(tmpstr, format, ap);
++    /* format the string (but leave room for \n and \0) */
++    vsnprintf(tmpstr, sizeof(tmpstr)-2, format, ap);
+     va_end(ap);
+ 
+     strcat(tmpstr,"\n");

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-30 14:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-30 14:25 [rpms/xfig] epel10: Add forgotten patch Stanislav Ochotnicky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox