head	1.6;
access;
symbols
	pkgsrc-2026Q1:1.6.0.168
	pkgsrc-2026Q1-base:1.6
	pkgsrc-2025Q4:1.6.0.166
	pkgsrc-2025Q4-base:1.6
	pkgsrc-2025Q3:1.6.0.164
	pkgsrc-2025Q3-base:1.6
	pkgsrc-2025Q2:1.6.0.162
	pkgsrc-2025Q2-base:1.6
	pkgsrc-2025Q1:1.6.0.160
	pkgsrc-2025Q1-base:1.6
	pkgsrc-2024Q4:1.6.0.158
	pkgsrc-2024Q4-base:1.6
	pkgsrc-2024Q3:1.6.0.156
	pkgsrc-2024Q3-base:1.6
	pkgsrc-2024Q2:1.6.0.154
	pkgsrc-2024Q2-base:1.6
	pkgsrc-2024Q1:1.6.0.152
	pkgsrc-2024Q1-base:1.6
	pkgsrc-2023Q4:1.6.0.150
	pkgsrc-2023Q4-base:1.6
	pkgsrc-2023Q3:1.6.0.148
	pkgsrc-2023Q3-base:1.6
	pkgsrc-2023Q2:1.6.0.146
	pkgsrc-2023Q2-base:1.6
	pkgsrc-2023Q1:1.6.0.144
	pkgsrc-2023Q1-base:1.6
	pkgsrc-2022Q4:1.6.0.142
	pkgsrc-2022Q4-base:1.6
	pkgsrc-2022Q3:1.6.0.140
	pkgsrc-2022Q3-base:1.6
	pkgsrc-2022Q2:1.6.0.138
	pkgsrc-2022Q2-base:1.6
	pkgsrc-2022Q1:1.6.0.136
	pkgsrc-2022Q1-base:1.6
	pkgsrc-2021Q4:1.6.0.134
	pkgsrc-2021Q4-base:1.6
	pkgsrc-2021Q3:1.6.0.132
	pkgsrc-2021Q3-base:1.6
	pkgsrc-2021Q2:1.6.0.130
	pkgsrc-2021Q2-base:1.6
	pkgsrc-2021Q1:1.6.0.128
	pkgsrc-2021Q1-base:1.6
	pkgsrc-2020Q4:1.6.0.126
	pkgsrc-2020Q4-base:1.6
	pkgsrc-2020Q3:1.6.0.124
	pkgsrc-2020Q3-base:1.6
	pkgsrc-2020Q2:1.6.0.120
	pkgsrc-2020Q2-base:1.6
	pkgsrc-2020Q1:1.6.0.100
	pkgsrc-2020Q1-base:1.6
	pkgsrc-2019Q4:1.6.0.122
	pkgsrc-2019Q4-base:1.6
	pkgsrc-2019Q3:1.6.0.118
	pkgsrc-2019Q3-base:1.6
	pkgsrc-2019Q2:1.6.0.116
	pkgsrc-2019Q2-base:1.6
	pkgsrc-2019Q1:1.6.0.114
	pkgsrc-2019Q1-base:1.6
	pkgsrc-2018Q4:1.6.0.112
	pkgsrc-2018Q4-base:1.6
	pkgsrc-2018Q3:1.6.0.110
	pkgsrc-2018Q3-base:1.6
	pkgsrc-2018Q2:1.6.0.108
	pkgsrc-2018Q2-base:1.6
	pkgsrc-2018Q1:1.6.0.106
	pkgsrc-2018Q1-base:1.6
	pkgsrc-2017Q4:1.6.0.104
	pkgsrc-2017Q4-base:1.6
	pkgsrc-2017Q3:1.6.0.102
	pkgsrc-2017Q3-base:1.6
	pkgsrc-2017Q2:1.6.0.98
	pkgsrc-2017Q2-base:1.6
	pkgsrc-2017Q1:1.6.0.96
	pkgsrc-2017Q1-base:1.6
	pkgsrc-2016Q4:1.6.0.94
	pkgsrc-2016Q4-base:1.6
	pkgsrc-2016Q3:1.6.0.92
	pkgsrc-2016Q3-base:1.6
	pkgsrc-2016Q2:1.6.0.90
	pkgsrc-2016Q2-base:1.6
	pkgsrc-2016Q1:1.6.0.88
	pkgsrc-2016Q1-base:1.6
	pkgsrc-2015Q4:1.6.0.86
	pkgsrc-2015Q4-base:1.6
	pkgsrc-2015Q3:1.6.0.84
	pkgsrc-2015Q3-base:1.6
	pkgsrc-2015Q2:1.6.0.82
	pkgsrc-2015Q2-base:1.6
	pkgsrc-2015Q1:1.6.0.80
	pkgsrc-2015Q1-base:1.6
	pkgsrc-2014Q4:1.6.0.78
	pkgsrc-2014Q4-base:1.6
	pkgsrc-2014Q3:1.6.0.76
	pkgsrc-2014Q3-base:1.6
	pkgsrc-2014Q2:1.6.0.74
	pkgsrc-2014Q2-base:1.6
	pkgsrc-2014Q1:1.6.0.72
	pkgsrc-2014Q1-base:1.6
	pkgsrc-2013Q4:1.6.0.70
	pkgsrc-2013Q4-base:1.6
	pkgsrc-2013Q3:1.6.0.68
	pkgsrc-2013Q3-base:1.6
	pkgsrc-2013Q2:1.6.0.66
	pkgsrc-2013Q2-base:1.6
	pkgsrc-2013Q1:1.6.0.64
	pkgsrc-2013Q1-base:1.6
	pkgsrc-2012Q4:1.6.0.62
	pkgsrc-2012Q4-base:1.6
	pkgsrc-2012Q3:1.6.0.60
	pkgsrc-2012Q3-base:1.6
	pkgsrc-2012Q2:1.6.0.58
	pkgsrc-2012Q2-base:1.6
	pkgsrc-2012Q1:1.6.0.56
	pkgsrc-2012Q1-base:1.6
	pkgsrc-2011Q4:1.6.0.54
	pkgsrc-2011Q4-base:1.6
	pkgsrc-2011Q3:1.6.0.52
	pkgsrc-2011Q3-base:1.6
	pkgsrc-2011Q2:1.6.0.50
	pkgsrc-2011Q2-base:1.6
	pkgsrc-2011Q1:1.6.0.48
	pkgsrc-2011Q1-base:1.6
	pkgsrc-2010Q4:1.6.0.46
	pkgsrc-2010Q4-base:1.6
	pkgsrc-2010Q3:1.6.0.44
	pkgsrc-2010Q3-base:1.6
	pkgsrc-2010Q2:1.6.0.42
	pkgsrc-2010Q2-base:1.6
	pkgsrc-2010Q1:1.6.0.40
	pkgsrc-2010Q1-base:1.6
	pkgsrc-2009Q4:1.6.0.38
	pkgsrc-2009Q4-base:1.6
	pkgsrc-2009Q3:1.6.0.36
	pkgsrc-2009Q3-base:1.6
	pkgsrc-2009Q2:1.6.0.34
	pkgsrc-2009Q2-base:1.6
	pkgsrc-2009Q1:1.6.0.32
	pkgsrc-2009Q1-base:1.6
	pkgsrc-2008Q4:1.6.0.30
	pkgsrc-2008Q4-base:1.6
	pkgsrc-2008Q3:1.6.0.28
	pkgsrc-2008Q3-base:1.6
	cube-native-xorg:1.6.0.26
	cube-native-xorg-base:1.6
	pkgsrc-2008Q2:1.6.0.24
	pkgsrc-2008Q2-base:1.6
	cwrapper:1.6.0.22
	pkgsrc-2008Q1:1.6.0.20
	pkgsrc-2008Q1-base:1.6
	pkgsrc-2007Q4:1.6.0.18
	pkgsrc-2007Q4-base:1.6
	pkgsrc-2007Q3:1.6.0.16
	pkgsrc-2007Q3-base:1.6
	pkgsrc-2007Q2:1.6.0.14
	pkgsrc-2007Q2-base:1.6
	pkgsrc-2007Q1:1.6.0.12
	pkgsrc-2007Q1-base:1.6
	pkgsrc-2006Q4:1.6.0.10
	pkgsrc-2006Q4-base:1.6
	pkgsrc-2006Q3:1.6.0.8
	pkgsrc-2006Q3-base:1.6
	pkgsrc-2006Q2:1.6.0.6
	pkgsrc-2006Q2-base:1.6
	pkgsrc-2006Q1:1.6.0.4
	pkgsrc-2006Q1-base:1.6
	pkgsrc-2005Q4:1.6.0.2
	pkgsrc-2005Q4-base:1.6
	pkgsrc-2005Q3:1.5.0.2
	pkgsrc-2005Q3-base:1.5
	pkgsrc-2005Q2:1.4.0.6
	pkgsrc-2005Q2-base:1.4
	pkgsrc-2005Q1:1.4.0.4
	pkgsrc-2005Q1-base:1.4
	pkgsrc-2004Q4:1.4.0.2
	pkgsrc-2004Q4-base:1.4
	pkgsrc-2004Q3:1.2.0.6
	pkgsrc-2004Q3-base:1.2
	pkgsrc-2004Q2:1.2.0.4
	pkgsrc-2004Q2-base:1.2
	pkgsrc-2004Q1:1.2.0.2
	pkgsrc-2004Q1-base:1.2
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.6
date	2005.10.28.16.00.50;	author wiz;	state Exp;
branches;
next	1.5;

1.5
date	2005.09.12.14.49.10;	author minskim;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	2004.12.19.04.53.08;	author jlam;	state Exp;
branches;
next	1.3;

1.3
date	2004.10.30.07.11.18;	author minskim;	state dead;
branches;
next	1.2;

1.2
date	2004.01.27.14.18.21;	author xtraeme;	state Exp;
branches;
next	1.1;

1.1
date	2004.01.06.15.34.02;	author wiz;	state Exp;
branches
	1.1.1.1;
next	;

1.5.2.1
date	2005.10.30.12.53.01;	author seb;	state Exp;
branches;
next	;

1.1.1.1
date	2004.01.06.15.34.02;	author wiz;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Update to 0.37.3:

Another stack overflow has been fixed, this one reported by Sven Tantau.
The stack overflow is trivially exploitable to run arbitrary code.
Additionally, the Makefile.in was fixed so that "make install" does the
right thing. Previously, it was not working properly, and the examples
would subsequently fail to build.
@
text
@$NetBSD: patch-aa,v 1.5 2005/09/12 14:49:10 minskim Exp $

--- src/chm_lib.c.orig	2005-10-26 14:17:50.000000000 +0200
+++ src/chm_lib.c
@@@@ -182,8 +182,14 @@@@ typedef unsigned long           UInt64;
 
 #else
 
-/* yielding an error is preferable to yielding incorrect behavior */
-#error "Please define the sized types for your platform in chm_lib.c"
+typedef unsigned char           UChar;
+typedef int16_t                 Int16;
+typedef u_int16_t               UInt16;
+typedef int32_t                 Int32;
+typedef u_int32_t               UInt32;
+typedef int64_t                 Int64;
+typedef u_int64_t               UInt64;
+
 #endif
 
 /* GCC */
@


1.5
log
@Update chmlib to 0.36.  This version includes two security fixes.

Changes:
    - Major security fix (iDEFENSE Security Advisory IDEF1099 - Stack Overflow
      Vulnerability)
    - Major security fix from Palasik Sandor (LZX decompression buffer overrun)
    - Bugfix/enhancement from David Huseby to make the "what" flags to
      chm_enumerate work correctly, and to pass the flags along to the callback
      function (via the chmUnitInfo structure) so that the callback doesn't
      need to re-parse the filename.
    - Compilation fixes for x86-64 from Vitaly V. Bursov.
    - Miscellaneous fixes to the configure script, including some significant
      cleanup by Vadim Zeitlin.  The changes from Vadim should also allow the
      configure script to correctly configure the build on OS X, where it was
      previously failing to note that pread64 doesn't work.
    - Minor update to the Makefile.in to do a mkdir before the install, in case
      the specified INSTALLPREFIX directory is non-existent
@
text
@d1 1
a1 1
$NetBSD$
d3 1
a3 1
--- src/chm_lib.c.orig	2005-09-09 05:42:27.000000000 -0700
@


1.5.2.1
log
@Pullup ticket 858 - requested by Thomas Klausner
security update for devel/chmlib

Revisions pulled up:
- pkgsrc/devel/chmlib/Makefile                                1.9
- pkgsrc/devel/chmlib/buildlink3.mk                           1.4
- pkgsrc/devel/chmlib/distinfo                                1.7
- pkgsrc/devel/chmlib/patches/patch-aa                        1.6
- pkgsrc/devel/chmlib/patches/patch-ab                        1.1

   Module Name:	pkgsrc
   Committed By:	wiz
   Date:		Fri Oct 28 16:00:50 UTC 2005

   Modified Files:
   	pkgsrc/devel/chmlib: Makefile buildlink3.mk distinfo
   	pkgsrc/devel/chmlib/patches: patch-aa

   Log Message:
   Update to 0.37.3:

   Another stack overflow has been fixed, this one reported by Sven Tantau.
   The stack overflow is trivially exploitable to run arbitrary code.
   Additionally, the Makefile.in was fixed so that "make install" does the
   right thing. Previously, it was not working properly, and the examples
   would subsequently fail to build.
---
   Module Name:	pkgsrc
   Committed By:	wiz
   Date:		Fri Oct 28 16:01:09 UTC 2005

   Added Files:
   	pkgsrc/devel/chmlib/patches: patch-ab

   Log Message:
   Update to 0.37.3:

   Another stack overflow has been fixed, this one reported by Sven Tantau.
   The stack overflow is trivially exploitable to run arbitrary code.
   Additionally, the Makefile.in was fixed so that "make install" does the
   right thing. Previously, it was not working properly, and the examples
   would subsequently fail to build.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.6 2005/10/28 16:00:50 wiz Exp $
d3 1
a3 1
--- src/chm_lib.c.orig	2005-10-26 14:17:50.000000000 +0200
@


1.4
log
@Use types defined by <sys/types.h> to define some chmlib fixed-width
integer types.  This allows this to build on amd64, although it now
warns of passing around pointers of incompatible type.
@
text
@d3 1
a3 1
--- src/chm_lib.c.orig	2004-06-28 20:42:38.000000000 -0400
d5 2
a6 3
@@@@ -169,9 +169,13 @@@@ typedef unsigned long           UInt32;
 typedef long long               Int64;
 typedef unsigned long long      UInt64;
d8 1
a8 1
-
d18 1
@


1.3
log
@Update chmlib to 0.35.

Changes:
    - UTF-8 filenames, while still not handled correctly, are handled a little
      more gracefully.  That is to say, the library doesn't fail to open files
      with filenames using characters outside the ASCII subset.  I'm very
      interested in any information as to the "right" way to handle filenames
      of this sort.
    - Files not containing a compressed section are handled properly, such as
      .chw files.  These files seem to contain information about compression,
      but the information is invalid or empty.  The library deals gracefully
      with this now.
    - Files compressed with different options were not being decompressed
      properly.  In particular, if the "reset interval" for the compressed
      section was other than 2 block sizes, it could fail to read some of the
      files.
    - The caching system was improved slightly, in conjunction with this
      previous bugfix.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.2 2004/01/27 14:18:21 xtraeme Exp $
d3 19
a21 18
--- Makefile.orig	Wed Oct  9 23:25:54 2002
+++ Makefile
@@@@ -7,11 +7,10 @@@@
 # Note: LDFLAGS must contain -lpthread if you are using -DCHM_MT.
 #
 #CFLAGS=-DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64
-CFLAGS=-DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -g -DDMALLOC_DISABLE
-LDFLAGS=-lpthread
-INSTALLPREFIX=/usr/local/
-CC=gcc-3.2
-LD=gcc-3.2
+CFLAGS+=-DCHM_MT -DDMALLOC_DISABLE
+LDFLAGS+=${PTHREAD_LDFLAGS}
+INSTALLPREFIX=${PREFIX}
+LD=${CC}
 LIBTOOL=libtool
 CP=/bin/cp
 EXAMPLES=test_chmLib enum_chmLib enumdir_chmLib chm_http extract_chmLib
@


1.2
log
@Replace -lpthread with ${PTHREAD_LDFLAGS}, fixes build in FreeBSD and maybe
others.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.1.1.1 2004/01/06 15:34:02 wiz Exp $
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
$NetBSD$
d15 1
a15 1
+LDFLAGS+=-lpthread
@


1.1.1.1
log
@Initial import of chmlib, a library dealing with .chm files,
from pkgsrc-wip (by xtraeme@@).

CHMLIB is a library for dealing with Microsoft ITSS/CHM format
files. Right now, it is a very simple library, but sufficient for
dealing with all of the .chm files I've come across. Due to the
fairly well-designed indexing built into this particular file
format, even a small library is able to gain reasonably good
performance indexing into ITSS archives. Since the last version
there have been major bugfixes, portability improvements, and minor
feature additions.
@
text
@@
