Opened 10 years ago

Last modified 9 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@…, dank@…
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

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@… 9 years ago.
Example: just print out volume name

Download all attachments as: .zip

Change History (4)

comment:1 Changed 9 years ago by dank@…

  • Cc dank@… added

Affects me, too. See attached example.

Changed 9 years ago by dank@…

Example: just print out volume name

comment:2 Changed 9 years ago by dank@…

comment:3 Changed 9 years ago by dominik@…

  • Cc dominik@… added

Seems to work with current libdvdread SVN.

Note: See TracTickets for help on using tickets.