- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
[cdrkit.git] / cdrkit-1.1.11-readsegfault.patch
bloba3a130585748a392a89823573508aefb375d5cf3
1 diff -up cdrkit-1.1.11/readom/readom.c.readsegfault cdrkit-1.1.11/readom/readom.c
2 --- cdrkit-1.1.11/readom/readom.c.readsegfault 2011-03-07 15:51:46.889441591 +0100
3 +++ cdrkit-1.1.11/readom/readom.c 2011-03-07 15:51:50.702938263 +0100
4 @@ -906,7 +906,7 @@ read_ftoc(SCSI *usalp, parm_t *parmp, BO
7 strcpy(filename, "toc.dat");
8 - if (strcmp(parmp->name, "/dev/null") != 0) {
9 + if (parmp != NULL && strcmp(parmp->name, "/dev/null") != 0) {
11 len = strlen(parmp->name);
12 if (len > (sizeof (filename)-5)) {