]> err.no Git - systemd/commit
cdrom_id: cd_media_toc() extend toc size to 65536
authorHarald Hoyer <harald@redhat.com>
Thu, 24 Feb 2011 15:57:05 +0000 (16:57 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 24 Feb 2011 15:59:21 +0000 (16:59 +0100)
commit551b143e13fe5386326a417c53d0a64d49266263
tree9b6c46a5bedea928739c6932441bacbfe5a4488b
parent7ae8a463bef9e071d2ce7706783171aafab28f2e
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 <martin.pitt@ubuntu.com>
extras/cdrom_id/cdrom_id.c