gentoo-ebuilds/app-text/gv/files/gv-3.7.4-bug1071238.patch
Matt Turner bad533b896
app-text/gv: Version bump to 3.7.4
v3.7.4 was released in 2013, so this is a little overdue...

* Bump to EAPI=8
* Fix build with CFLAGS=-lflto (bug #855011)
* Fix build to call toolchain's AR (bug #729564)
* Add (+) to x11-libs/libXaw3d's unicode USE-dep
* Run gnuconfig_update since the included config.guess is ancient
* Apply a bunch of patches from Fedora

Closes: https://bugs.gentoo.org/729564
Closes: https://bugs.gentoo.org/855011
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2022-08-27 11:29:37 -04:00

22 lines
735 B
Diff

Fix NULL access segfault
https://bugzilla.redhat.com/show_bug.cgi?id=1071238
https://src.fedoraproject.org/rpms/gv/blob/rawhide/f/gv-bug1071238.patch
diff a/src/zoom.c b/src/zoom.c
--- a/src/zoom.c
+++ b/src/zoom.c
@@ -104,12 +104,12 @@ zoom_createZoom(Widget w _GL_UNUSED, XtP
BEGINMESSAGE(zoom_createZoom)
- if (!(gv_psfile != NULL || (gv_gs_arguments && *gv_gs_arguments))) {
+ if (!gv_psfile) {
INFMESSAGE(no file) ENDMESSAGE(zoom_createZoom)
return;
}
- if (strcmp(gv_filename, "-")) {
+ if (gv_filename != NULL && strcmp(gv_filename, "-")) {
stat(gv_filename, &sbuf);
if (mtime != sbuf.st_mtime) {
INFMESSAGE1(file has changed) ENDMESSAGE1(zoom_createZoom)return;