diff options
Diffstat (limited to 'app-cdr/b5i2iso/files')
-rw-r--r-- | app-cdr/b5i2iso/files/b5i2iso-0.2-segfault.patch | 18 |
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 |