Opened 15 years ago

Last modified 13 years ago

#1451 new defect

libdvdread: UDFGetVolumeIdentifier fails

Reported by: stebbins@… Owned by: reimar
Priority: normal Component: core
Version: HEAD Severity: normal
Keywords: Cc: Dominik 'Rathann' Mierzejewski, dank@…
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

UDFGetVolumeIdentifier calls UDFGetPVD calls UDFGetDescriptor which fails because bufsize is to small (8 bytes). The error is in the call.

if(!UDFGetDescriptor( device, 1, pvd_buf, sizeof(pvd_buf)))

sizeof(pvd_buf) gives the size of the pointer and not what it points at. It should be:

if(!UDFGetDescriptor( device, 1, pvd_buf, DVD_VIDEO_LB_LEN))

Attachments (1)

dvdvolname.c (595 bytes ) - added by dank@… 13 years ago.
Example: just print out volume name

Download all attachments as: .zip

Change History (4)

comment:1 by dank@…, 13 years ago

Cc: dank@… added

Affects me, too. See attached example.

by dank@…, 13 years ago

Attachment: dvdvolname.c added

Example: just print out volume name

comment:2 by dank@…, 13 years ago

comment:3 by Dominik 'Rathann' Mierzejewski, 13 years ago

Cc: Dominik 'Rathann' Mierzejewski added

Seems to work with current libdvdread SVN.

Note: See TracTickets for help on using tickets.