cdrkit/cdrkit-1.1.11-readsegfault.patch
Petr Šabata e74c528fa3 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/cdrkit#c47995e62aae3cb183ab87aac16c963e028f3d50
2020-10-14 22:39:15 +02:00

13 lines
512 B
Diff

diff -up cdrkit-1.1.11/readom/readom.c.readsegfault cdrkit-1.1.11/readom/readom.c
--- cdrkit-1.1.11/readom/readom.c.readsegfault 2011-03-07 15:51:46.889441591 +0100
+++ cdrkit-1.1.11/readom/readom.c 2011-03-07 15:51:50.702938263 +0100
@@ -906,7 +906,7 @@ read_ftoc(SCSI *usalp, parm_t *parmp, BO
strcpy(filename, "toc.dat");
- if (strcmp(parmp->name, "/dev/null") != 0) {
+ if (parmp != NULL && strcmp(parmp->name, "/dev/null") != 0) {
len = strlen(parmp->name);
if (len > (sizeof (filename)-5)) {