Commit Graph

46 Commits

Author SHA1 Message Date
rocky
2e34115075 Add checks for memory allocation failures. Patch from Mandriva folks by
Gustavo De Nardin via Vincent Danen. Originally for libcdio 0.78.2

See also https://savannah.gnu.org/patch/?6413
2008-02-08 08:53:32 +00:00
rocky
b6868ddc8f Note that iso9660_dir_to_name can return NULL if memory allocation fails. 2008-01-05 12:12:52 +00:00
rocky
f8f896cc29 Another case of potentially accessing outside of array bounds. Bug caught by Nico Golde. 2008-01-05 09:54:31 +00:00
rocky
f817761954 iso9660_open_ext_private(): close image filecupon error.
Leds to an open file descriptor making it impossible of
e.g. unmounting a CDROM containing the file. Savannah bug #21147.
2007-09-26 05:30:15 +00:00
rocky
8734346d8d iso9660.c: off-by-one bug which was causing dates to come out
wrong. Thanks to Nicolas Boullis for finding and fixing.

iso9660_fs.c: remove bugs merging code from the last round of
changes/enhancements

check_common_fn.in: show full iso_read command when it fails.
2007-09-05 11:17:36 +00:00
rocky
a33bb59a7f iso9660_fs.c: remove some (but not all) of the redundancy
testisocd2.c.in: a test of working with an ISO 9660 image.
2007-08-12 12:41:10 +00:00
rocky
2a01d008fc iso9660_fs.c: remove some bugs in freeing here.
isolsn.c: Add a sample program for showing the path for given LSN.
2007-08-12 00:56:09 +00:00
rocky
de2c6a18ae Add iso9660_fs_find_lsn_with_path and iso9660_ifs_find_lsn_with_path to report the full filename path of lsn. 2007-08-11 16:26:14 +00:00
rocky
2df6dfaa21 Symlinks were sharing stat_buf so freeing one made the pointer to the
other invalid. Allocate a separate entry for each symlink.

Bug report and patch provided by Antti Perälä. Savannah bug #18563
2006-12-20 09:26:35 +00:00
flameeyes
932617cf75 Check for the pointers before dereference them. Found by Coverity Scan on xine-lib. 2006-09-26 22:21:09 +00:00
gmerlin
511c0b9416 * UTF-8 support patch 2006-06-02 21:54:21 +00:00
rocky
611fc94450 Replace strcat and strcpy with strncat, strncpy. 2006-03-17 22:36:31 +00:00
rocky
62386a361a iso9660.h: note b_mode2 parameter is not used any more
cdda-player.c
FSF address change.
2006-03-14 11:40:05 +00:00
rocky
7a3ded9bd7 Add ISO9660::FS - the cdio portion of ISO9660 reading.
iso9600.h: another function rename to be more consistent.
2006-03-06 21:54:56 +00:00
rocky
6e4743c734 Break out POSIX-like definitions to posix.h
Add ISO9660 routines to convert to mode_t
Record whether XA or not in iso9660_stat_t.
And other definition shifting around.
2005-11-06 00:39:37 +00:00
rocky
f082e5742a pathname ->psz_name 2005-10-12 11:25:17 +00:00
rocky
b4b1c4ec6f Add option to disable Rock-Ridge support --disable-rock
Add IS_ISSOCK() or S_ISLNK() macros for Rock-Ridge when environment
doesn't have it, e.g. MSYS 1.0.10 with MinGW 3.4.2.

Go over --enable settings. --disable-cpp-progs now works.

Require libcddb 1.0.1 or better
2005-09-15 06:36:01 +00:00
rocky
62a7cdc325 A couple of flawfinder errors. Use sizeof instead of strlen. Fold
strncat into preceding snprintf.
2005-06-07 23:40:53 +00:00
rocky
2ecc6106d7 Fix bug if we don't have Joliet around. 2005-04-15 05:06:09 +00:00
rocky
e226c220ac Fix syntax error if Joliet. 2005-03-03 13:47:59 +00:00
rocky
d4279cb35f Report error when read_data_block fails. 2005-02-28 03:04:21 +00:00
rocky
f21d10168d Erroneous parameter passed. 2005-02-25 09:08:57 +00:00
rocky
ec0564dfee Process Rock-Ridge time fields. Not tested or shown yet.
Break out Rock Ridge fields of our ISO9660 stat.
2005-02-21 09:00:53 +00:00
rocky
5b029744c6 Process symbolic links. Remove some memory leaks. 2005-02-21 02:02:12 +00:00
rocky
7a45afb450 Fix some memory leaks caught by valgrind. Also replace a relloc - not sure
why valgrind was having problems with that.
2005-02-20 17:47:01 +00:00
rocky
a8e1fd6038 all: Add iso9660_get_rock_attr_str to get an ls-like mode string for rock
ridge.

{cd,iso}-info.c util.{c,h}: put common printing routine in util.c

rock.h: add enum for NM flags
iso9660.h: move mode_t typedef so it can be used in rock.h
xa.{c,h}: small typos.

test/*: in most cases better output. On VCD's however there there is a
slight regression on displaying the filename someitmes. Will be
addressed later.
2005-02-20 10:21:01 +00:00
rocky
0a048cb05c *** empty log message *** 2005-02-20 03:20:42 +00:00
rocky
a68d88f117 Remove bug in Joliet-handling when adding Rock Ridge is not there. 2005-02-18 22:35:48 +00:00
rocky
a4d389b939 iso9660_fs.c: reallocate filename when Rock-Ridge name is bigger.
rock.c: variable name changes

cd-info.c: don't translate file name when there are Rock-Ridge
Extensions.
2005-02-18 01:31:08 +00:00
rocky
ab344d538c Remove more of the no longer needed distinction (that we sometimes got
wrong) of Mode 1 vs Mode 2 data reading.
2005-02-17 11:54:28 +00:00
rocky
da62695b60 Move forward in getting better ISO-9660 reading by eliminating "Mode 1/2"
specification in API.
2005-02-17 07:03:36 +00:00
rocky
78a3f49868 Add routine for reading data independent of or mode1 and mode2 format.
Should help with ISO 9660 reading. Add generic MMC READ_CD routine.

Warning - even more breakage in some situations. (But there's promise
of an overall brighter future.)
2005-02-17 04:57:21 +00:00
rocky
b504a1a652 First semblance of being able to handle Rock Ridge names. 2005-02-14 07:49:46 +00:00
rocky
2f11a30fb3 Merge in more Rock Ridge code. Not working yet. Hopefully not much
breakage. (But there may be some especially on less-POSIX OS's.)
2005-02-13 22:03:00 +00:00
rocky
521fb446a9 All structure tags now end in _s and we have typedefs for all of them
(ending in _t).
iso9660.h: abc -> a.b.c for ISO fields.
2005-02-12 10:23:18 +00:00
rocky
8296df8b3d Add generic mode_sense(), add cdio_have_atapi() and use these.
API number bumped
Add bool_3way_t (yes, nope, dunno)
2005-02-10 01:59:05 +00:00
rocky
12186bc043 iso9660_fs.c: wrong order of initialization.
correct types on get_media_changed_mmc
Solaris fixes.
2005-02-06 11:32:22 +00:00
rocky
79d7a57f1f Check in Mode 1 or Mode 2 on fuzzy searching. 2005-02-05 18:58:36 +00:00
rocky
1c5aa655ea Check header for PVD MSF. Get XA mode more often. 2005-02-05 18:41:31 +00:00
rocky
a94f82f2e7 xa.h: add enumeration for debugging
rest: better understanding of when there might be XA and when there might not
      be. Don't give a warnings about missing XA attributes when the format
      isn't supposed to have it.
2005-02-05 17:29:01 +00:00
rocky
d958f062ea First attempt at smart iso9660 reading in CD images.
_cdio_stream.*: return is now cdio_driver_return_t
2005-02-05 04:25:14 +00:00
rocky
629addf0dc remove cdio_malloc() and replace with calloc() 2005-02-04 02:18:12 +00:00
rocky
bd333bc73f Move a set_speed and set_blocksize (via MMC)from driver-specific
places to generic.

Add _t to yet another type.
2005-01-20 01:00:52 +00:00
rocky
15527b8cb1 Non-functional changes:
Small coding style changes: add _t to some types, p_/psz_ to some variables
  Update/add doxygen comments
  add missing regression test output
2005-01-12 11:34:51 +00:00
rocky
0538377177 Add Cdio_t, move some more stuff into track.h 2005-01-02 22:43:41 +00:00
rocky
6c14d28918 BIG REORGANIZATION.
Reorganize directory structure for inclusion of cd-paranoia. Works for
GNU/Linux. Other OS's may be broken. Regression test output needs to
be adjusted too.

Move:
lib/driver (split off of lib)
lib/iso9660 (split off of lib)

Add from paranoia:
lib/cdda_interface
lib/paranoia
src/paranoia

Also made some small changes to capability indentification to show
more reading capabilties and show that.

cd-info now shows the total disc size.
2004-12-18 17:29:32 +00:00