annotate dvdread/ifo_print.h @ 26267:430da0c9fcce

Fix possible integer overflow in malloc by using calloc instead. Should fix CVE-2008-0073 as far as MPlayer is affected by this problem.
author reimar
date Sat, 29 Mar 2008 11:35:29 +0000
parents 1542693b2a30
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24050
1542693b2a30 Sync libdvdread with version 0.9.5 (cosmetic changes).
diego
parents: 20983
diff changeset
1 /* -*- c-basic-offset: 2; indent-tabs-mode: nil -*- */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
2 #ifndef IFO_PRINT_H_INCLUDED
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
3 #define IFO_PRINT_H_INCLUDED
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
4
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
5 /*
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
6 * Copyright (C) 2000, 2001 Björn Englund <d4bjorn@dtek.chalmers.se>,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
7 * Håkan Hjort <d95hjort@dtek.chalmers.se>
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
8 *
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or modify
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
10 * it under the terms of the GNU General Public License as published by
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
12 * (at your option) any later version.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
13 *
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
17 * GNU General Public License for more details.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
18 *
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
20 * along with this program; if not, write to the Free Software
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
22 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
23
20983
4da452b25fd5 Drop some unnecessary local changes.
diego
parents: 20981
diff changeset
24 #include <dvdread/ifo_types.h>
4da452b25fd5 Drop some unnecessary local changes.
diego
parents: 20981
diff changeset
25 #include <dvdread/dvd_reader.h>
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
26
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
27 #ifdef __cplusplus
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
28 extern "C" {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
29 #endif
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
30
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
31 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
32 * This file provides example functions for printing information about the IFO
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
33 * file to stdout.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
34 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
35
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
36 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
37 * Print the complete parsing information for the given file.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
38 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
39
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
40 /* ifoPrint(dvd, title); */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
41 void ifoPrint(dvd_reader_t *, int);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
42
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
43 void ifoPrint_VMGI_MAT(vmgi_mat_t *);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
44 void ifoPrint_VTSI_MAT(vtsi_mat_t *);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
45
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
46 void ifoPrint_PTL_MAIT(ptl_mait_t *);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
47 void ifoPrint_VTS_ATRT(vts_atrt_t *);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
48 void ifoPrint_TT_SRPT(tt_srpt_t *);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
49 void ifoPrint_VTS_PTT_SRPT(vts_ptt_srpt_t *);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
50 void ifoPrint_PGC(pgc_t *);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
51 void ifoPrint_PGCIT(pgcit_t *);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
52 void ifoPrint_PGCI_UT(pgci_ut_t *);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
53 void ifoPrint_VTS_TMAPT(vts_tmapt_t *);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
54 void ifoPrint_C_ADT(c_adt_t *);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
55 void ifoPrint_VOBU_ADMAP(vobu_admap_t *);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
56
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
57 #ifdef __cplusplus
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
58 };
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
59 #endif
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
60 #endif /* IFO_PRINT_H_INCLUDED */