summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@gmail.com>2017-05-18 04:02:38 +0300
committerMichał Górny <mgorny@gentoo.org>2017-05-18 21:11:02 +0200
commitbddfa12da21186224913c7aae3209566ad52dbca (patch)
tree38fc7cfee72e9d17a6c15576a7a591a9017002ad /app-cdr/b5i2iso/files/b5i2iso-0.2-segfault.patch
parentapp-cdr/ccd2iso: EAPI="6", correct LICENSE, epatch -> eapply, Mac (diff)
downloadgentoo-bddfa12da21186224913c7aae3209566ad52dbca.tar.gz
gentoo-bddfa12da21186224913c7aae3209566ad52dbca.tar.bz2
gentoo-bddfa12da21186224913c7aae3209566ad52dbca.zip
app-cdr/b5i2iso: segfault patch, HOMEPAGE, Gentoo Prefix
Closes: https://github.com/gentoo/gentoo/pull/4664
Diffstat (limited to 'app-cdr/b5i2iso/files/b5i2iso-0.2-segfault.patch')
-rw-r--r--app-cdr/b5i2iso/files/b5i2iso-0.2-segfault.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/app-cdr/b5i2iso/files/b5i2iso-0.2-segfault.patch b/app-cdr/b5i2iso/files/b5i2iso-0.2-segfault.patch
new file mode 100644
index 000000000000..6fda80e79605
--- /dev/null
+++ b/app-cdr/b5i2iso/files/b5i2iso-0.2-segfault.patch
@@ -0,0 +1,18 @@
+--- b5i2iso/src/b5i2iso.c
++++ b5i2iso/src/b5i2iso.c
+@@ -1,3 +1,4 @@
++#include <errno.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -45,6 +46,10 @@
+ }
+
+ fsource = fopen(argv[1],"rb");
++if (fsource == NULL) {
++ printf("can't open %s: %s\n", argv[1], strerror(errno));
++ exit(EXIT_FAILURE);
++}
+ fdest = fopen(destfilename,"wb");
+
+ fseek(fsource, 2352, SEEK_CUR); \ No newline at end of file