cdrkit-1.1.11-readsegfault.patch 512 B

12345678910111213
  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
  5. strcpy(filename, "toc.dat");
  6. - if (strcmp(parmp->name, "/dev/null") != 0) {
  7. + if (parmp != NULL && strcmp(parmp->name, "/dev/null") != 0) {
  8. len = strlen(parmp->name);
  9. if (len > (sizeof (filename)-5)) {