diff options
author | pav <pav@FreeBSD.org> | 2006-03-18 23:19:48 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2006-03-18 23:19:48 +0800 |
commit | 7ad5cc53d7079447bd60565001a2c1cb819c2a29 (patch) | |
tree | 8e91c4a778708a897fed6ec06448f197f81329d3 /sysutils | |
parent | 7911c688667936b04d3012ccd07e2b8d4547305e (diff) | |
download | freebsd-ports-gnome-7ad5cc53d7079447bd60565001a2c1cb819c2a29.tar.gz freebsd-ports-gnome-7ad5cc53d7079447bd60565001a2c1cb819c2a29.tar.zst freebsd-ports-gnome-7ad5cc53d7079447bd60565001a2c1cb819c2a29.zip |
- Fix coredump in TOC parsing in cdda2wav
PR: ports/94554
Submitted by: Fabian Keil <freebsd-listen@fabiankeil.de>
Obtained from: cdrtools-devel
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/cdrtools/Makefile | 3 | ||||
-rw-r--r-- | sysutils/cdrtools/files/patch-cdda2wav-toc.c | 20 |
2 files changed, 21 insertions, 2 deletions
diff --git a/sysutils/cdrtools/Makefile b/sysutils/cdrtools/Makefile index 6ecfa8fd59be..5d6cbd18fb90 100644 --- a/sysutils/cdrtools/Makefile +++ b/sysutils/cdrtools/Makefile @@ -7,7 +7,7 @@ PORTNAME= cdrtools PORTVERSION?= 2.01 -PORTREVISION?= 3 +PORTREVISION?= 4 CATEGORIES?= sysutils audio MASTER_SITES= ftp://ftp.berlios.de/pub/cdrecord/ \ ftp://ftp.cs.tu-berlin.de/pub/misc/cdrecord/ @@ -34,7 +34,6 @@ MKISOFSDOCS= README README.compression README.eltorito README.graft_dirs \ USE_BZIP2= yes USE_GMAKE= yes -USE_REINPLACE= yes MAKE_ENV= CCOM=${CC} LANG=C #CFLAGS+= -DSOURCE_MODIFIED PKGMESSAGE= ${WRKDIR}/pkg-message diff --git a/sysutils/cdrtools/files/patch-cdda2wav-toc.c b/sysutils/cdrtools/files/patch-cdda2wav-toc.c new file mode 100644 index 000000000000..c89084eb03f9 --- /dev/null +++ b/sysutils/cdrtools/files/patch-cdda2wav-toc.c @@ -0,0 +1,20 @@ +--- cdda2wav/toc.c.original Fri May 21 22:56:44 2004 ++++ cdda2wav/toc.c Mon Jan 16 13:54:30 2006 +@@ -959,7 +959,7 @@ + if (*target != NULL) + **target = '\0'; + } else { +- realloc(*target, strlen(*target) + clen - 1); ++ *target = realloc(*target, strlen(*target) + clen - 1); + } + if (*target != NULL) { + strcat((char *)*target, inbuff+ind+7); +@@ -994,7 +994,7 @@ + if (global.tracktitle[tno] != NULL) + *(global.tracktitle[tno]) = '\0'; + } else { +- realloc(global.tracktitle[tno], strlen((char *)global.tracktitle[tno]) + p - q + 1 ); ++ global.tracktitle[tno] = realloc(global.tracktitle[tno], strlen((char *)global.tracktitle[tno]) + p - q + 1 ); + } + if (global.tracktitle[tno] != NULL) { + strcat((char *)global.tracktitle[tno], q+1); |