~ubuntu-branches/ubuntu/karmic/tiff/karmic-security

« back to all changes in this revision

Viewing changes to contrib/tags/xtiffio.h

  • Committer: Bazaar Package Importer
  • Author(s): Jay Berkenbilt
  • Date: 2008-08-17 11:56:01 UTC
  • mfrom: (2.1.6 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080817115601-z9wls4z4dzk3nizw
Tags: 3.8.2-7+etch1
Apply patches from Drew Yao of Apple Product Security to fix
CVE-2008-2327, a potential buffer underflow in the LZW decoder
(tif_lzw.c).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  xtiffio.h -- Public interface to Extended TIFF tags
3
 
 *
4
 
 *    This is a template for defining a client module
5
 
 *    which supports tag extensions to the standard libtiff
6
 
 *    set. Only portions of the code marked "XXX" need to
7
 
 *    be changed to support your tag set.
8
 
 *
9
 
 *    written by: Niles D. Ritter
10
 
 */
11
 
 
12
 
#ifndef __xtiffio_h
13
 
#define __xtiffio_h
14
 
 
15
 
#include "tiffio.h"
16
 
 
17
 
/* 
18
 
 *  XXX Define your private Tag names and values here 
19
 
 */
20
 
 
21
 
/* These tags are not valid, but are provided for example */
22
 
#define TIFFTAG_EXAMPLE_MULTI      61234
23
 
#define TIFFTAG_EXAMPLE_SINGLE     61235
24
 
#define TIFFTAG_EXAMPLE_ASCII      61236
25
 
 
26
 
/* 
27
 
 *  XXX Define Printing method flags. These
28
 
 *  flags may be passed in to TIFFPrintDirectory() to
29
 
 *  indicate that those particular field values should
30
 
 *  be printed out in full, rather than just an indicator
31
 
 *  of whether they are present or not.
32
 
 */
33
 
#define TIFFPRINT_MYMULTIDOUBLES        0x80000000
34
 
 
35
 
/**********************************************************************
36
 
 *    Nothing below this line should need to be changed by the user.
37
 
 **********************************************************************/
38
 
 
39
 
#if defined(__cplusplus)
40
 
extern "C" {
41
 
#endif
42
 
 
43
 
extern TIFF* XTIFFOpen(const char* name, const char* mode);
44
 
extern TIFF* XTIFFFdOpen(int fd, const char* name, const char* mode);
45
 
extern void  XTIFFClose(TIFF *tif);
46
 
 
47
 
#if defined(__cplusplus)
48
 
}
49
 
#endif
50
 
 
51
 
#endif /* __xtiffio_h */
52