From 551b143e13fe5386326a417c53d0a64d49266263 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 24 Feb 2011 16:57:05 +0100 Subject: [PATCH] cdrom_id: cd_media_toc() extend toc size to 65536 Seems like an iDRAC reports a lot of toc entries. "For cd_media_toc() will have to be modified to handle larger tables right now it has an "unsigned char toc[2048]" but the toc can be up to 65536 bytes long . I got a TOC length of 4610 bytes, causing cd_media_toc() to fail." https://bugzilla.redhat.com/show_bug.cgi?id=660367 Signed-off-by: Martin Pitt --- extras/cdrom_id/cdrom_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/cdrom_id/cdrom_id.c b/extras/cdrom_id/cdrom_id.c index f0e1cbbc..4a58a490 100644 --- a/extras/cdrom_id/cdrom_id.c +++ b/extras/cdrom_id/cdrom_id.c @@ -737,7 +737,7 @@ static int cd_media_toc(struct udev *udev, int fd) { struct scsi_cmd sc; unsigned char header[12]; - unsigned char toc[2048]; + unsigned char toc[65536]; unsigned int len, i, num_tracks; unsigned char *p; int err; -- 2.39.5