Commit graph

5387 commits

Author SHA1 Message Date
joerg
9dd14ee075 Drop -fno-check-new, it is the default. 2013-10-26 15:10:57 +00:00
wiz
1f5f72db38 Remove legacy support that was scheduled for removal. 2013-10-25 06:53:33 +00:00
wiz
4ff222a951 Update to 5.0.1:
2013-10-18  Jay Berkenbilt  <ejb@ql.org>

	* 5.0.1: release

	* Warn when -accessibility=n is specified with a modern encryption
	format (R > 3).  Also, accept this flag (and ignore with warning)
	with 256-bit encryption.  qpdf has always ignored the
	accessibility setting with R > 3, but it previously did so
	silently.

2013-10-05  Jay Berkenbilt  <ejb@ql.org>

	* Replace operator[] in std::string and std::vector with "at" in
	order to get bounds checking.  This reduces the chances that
	incorrect code will result in data exposure or buffer overruns.
	See README.hardening for additional notes.

	* Use cryptographically secure random number generation when
	available.  See additional notes in README.

	* Replace some assert() calls with std::logic_error exceptions.
	Ideally there shouldn't be assert() calls outside of testing.
	This change may make a few more potential code errors in handling
	invalid data recoverable.

	* Security fix: In places where std::vector<T>(size_t) was used,
	either validate that the size parameter is sane or refactor code
	to avoid the need to pre-allocate the vector.  This reduces the
	likelihood of allocating a lot of memory in response to invalid
	data in linearization hint streams.

	* Security fix: sanitize /W array in cross reference stream to
	avoid a potential integer overflow in a multiplication.  It is
	unlikely that any exploits were possible from this bug as
	additional checks were also performed.

	* Security fix: avoid buffer overrun that could be caused by bogus
	data in linearization hint streams.  The incorrect code could only
	be triggered when checking linearization data, which must be
	invoked explicitly.  qpdf does not check linearization data when
	reading or writing linearized files, but the qpdf --check command
	does check linearization data.

	* Security fix: properly handle empty strings in
	QPDF_Name::normalizeName.  The empty string is not a valid name
	and would never be parsed as a name, so there were no known
	conditions where this method could be called with an empty string.

	* Security fix: perform additional argument sanity checks when
	reading bit streams.

	* Security fix: in QUtil::toUTF8, change bounds checking to avoid
	having a pointer point temporarily outside the bounds of an
	array.  Some compiler optimizations could have made the original
	code unsafe.

2013-07-10  Jay Berkenbilt  <ejb@ql.org>

	* 5.0.0: release

	* 4.2.0 turned out to be binary incompatible on some platforms
	even though there were no changes to the public API.  Therefore
	the 4.2.0 release has been withdrawn, and is being replaced with a
	5.0.0 release that acknowledges the ABI change and also removes
	some problematic methods from the public API.

	* Remove methods from public API that were only intended to be
	used by QPDFWriter and really didn't make sense to call from
	anywhere else as they required internal knowledge that only
	QPDFWriter had:
	   - QPDF::getLinearizedParts
	   - QPDF::generateHintStream
	   - QPDF::getObjectStreamData
	   - QPDF::getCompressibleObjGens
	   - QPDF::getCompressibleObjects

2013-07-07  Jay Berkenbilt  <ejb@ql.org>

	* 4.2.0: release [withdrawn]

	* Ignore error case of a stream's decode parameters having invalid
	length when there are no stream filters.

	* qpdf: add --show-npages command-line option, which causes the
	number of pages in the input file to be printed on a line by
	itself.

	* qpdf: allow omission of range in --pages.  If range is omitted
	such that an argument that is supposed to be a range is an invalid
	range and a valid file name, the range of 1-z is assumed.  This
	makes it possible to merge a bunch of files with something like
	qpdf --empty out.pdf --pages *.pdf --

2013-06-15  Jay Berkenbilt  <ejb@ql.org>

	* Handle some additional broken files with missing /ID in trailer
	for encrypted files and with space rather than newline after xref.

2013-06-14  Jay Berkenbilt  <ejb@ql.org>

	* Detect and correct /Outlines dictionary being a direct object
	when linearizing files.  This is not allowed by the spec but has
	been seen in the wild.  Prior to this change, such a file would
	cause an internal error in the linearization code, which assumed
	/Outlines was indirect.

	* Add /Length key to crypt filter dictionary for encrypted files.
	This key is optional, but some version of MacOS reportedly fail to
	open encrypted PDF files without this key.

	* Bug fix: properly handle object stream generation when the
	original file has some compressible objects with generation != 0.

	* Add QPDF::getCompressibleObjGens() and deprecate
	QPDF::getCompressibleObjects(), which had a flaw in its logic.

	* Add new QPDFObjectHandle::getObjGen() method and indiciate in
	comments that its use is favored over getObjectID() and
	getGeneration() for most cases.

	* Add new QPDFObjGen object to represent an object ID/generation
	pair.

2013-04-14  Jay Berkenbilt  <ejb@ql.org>

	* 4.1.0: release

2013-03-25  Jay Berkenbilt  <ejb@ql.org>

	* manual/qpdf-manual.xml: Document the casting policy that is
	followed in qpdf's implementation.

2013-03-11  Jay Berkenbilt  <ejb@ql.org>

	* When creating Windows binary distributions, make sure to only
	copy DLLs of the correct type.  The ensures that the 32-bit
	distributions contain 32-bit DLLs and the 64-bit distributions
	contain 64-bit DLLs.

2013-03-07  Jay Berkenbilt  <ejb@ql.org>

	* Use ./install-sh (already present) instead of "install -c" to
	install executables to fix portability problems against different
	UNIX variants.

2013-03-03  Jay Berkenbilt  <ejb@ql.org>

	* Add protected terminateParsing method to
	QPDFObjectHandle::ParserCallbacks that implementor can call to
	terminate parsing of a content stream.

2013-02-28  Jay Berkenbilt  <ejb@ql.org>

	* Favor fopen_s and strerror_s on MSVC to avoid CRT security
	warnings.  This is useful for people who may want to use qpdf in
	an application that is Windows 8 certified.

	* New method QUtil::safe_fopen to wrap calls to fopen.  This is
	less cumbersome than calling QUtil::fopen_wrapper.

	* Remove all calls to sprintf

	* New method QUtil::int_to_string_base to convert to octal or
	hexademical (or decimal) strings without using sprintf

2013-02-26  Jay Berkenbilt  <ejb@ql.org>

	* Rewrite QUtil::int_to_string and QUtil::double_to_string to
	remove internal length limits but to remain backward compatible
	with the old versions for valid inputs.

2013-02-23  Jay Berkenbilt  <ejb@ql.org>

	* Bug fix: properly handle overridden compressed objects.  When
	caching objects from an object stream, only cache objects that,
	based on the xref table, would actually be resolved into this
	stream.  Prior to this fix, if an object stream A contained an
	object B that was overridden by an appended section of the file,
	qpdf would cache the old value of B if any non-overridden member
	of A was accessed before B.  This commit fixes that bug.

2013-01-31  Jay Berkenbilt  <ejb@ql.org>

	* Do not remove libtool's .la file during the make install step.
	Note to packagers: if your distribution wants to you remove the
	.la file, you will have to do that yourself now.

2013-01-25  Jay Berkenbilt  <ejb@ql.org>

	* New method QUtil::hex_encode to encode binary data as a
	hexadecimal string

	* qpdf --check was exiting with status 0 in some rare cases even
	when errors were found.  It now always exits with one of the
	document error codes (0 for success, 2 for errors, 3 or warnings).

2013-01-24  Jay Berkenbilt  <ejb@ql.org>

	* Make --enable-werror work for MSVC, and generally handle warning
	options better for that compiler.  Warning flags for that compiler
	were previous hard-coded into the build with /WX enabled
	unconditionally.

	* Split warning flags into WFLAGS in autoconf.mk to make them
	easier to override.  Before they were repeated in CFLAGS and
	CXXFLAGS and were commingled with other compiler flags.

	* qpdf --check now does syntactic checks all pages' content
	streams as well as checking overall document structure.  Semantic
	errors are still not checked, and there are no plans to add
	semantic checks.

2013-01-22  Jay Berkenbilt  <ejb@ql.org>

	* Add QPDFObjectHandle::getTypeCode().  This method returns a
	unique integer (enumerated type) value corresponding to the object
	type of the QPDFObjectHandle.  It can be used as an alternative to
	the QPDFObjectHandle::is* methods for type testing, particularly
	where there is a desire to use a switch statement or optimize for
	performance when testing object types.

	* Add QPDFObjectHandle::getTypeName().  This method returns a
	string literal describing the object type.  It is useful for
	testing and debugging.

2013-01-20  Jay Berkenbilt  <ejb@ql.org>

	* Add QPDFObjectHandle::parseContentStream, which parses the
	objects in a content stream and calls handlers in a callback
	class.  The example pdf-parse-content illustrates it use.

	* Add QPDF_Operator and QPDF_InlineImage types along with
	appropriate wrapper methods in QPDFObjectHandle.  These new object
	types are to facilitate content stream parsing.
2013-10-23 09:07:27 +00:00
wiz
bffe518c2e Update to 2.1.3:
2.1.3

- Minor GUI fixes.

- Subtle bug fix by Bryan Huh which _may_ help resolve the bug that
  affects saving when page ranges are in effect.
2013-10-20 21:57:48 +00:00
joerg
6261be68d9 Fix perl use. Bump revision. 2013-10-20 17:56:54 +00:00
joerg
c8290bfe8b Explicitly depend on lcms. 2013-10-20 17:56:26 +00:00
markd
c38b3a5e09 Split out and update various texlive packages from teTeX3-texmf to
separate packages.
2013-10-19 20:43:38 +00:00
adam
63c018902c Revbump after updating textproc/icu 2013-10-19 09:06:55 +00:00
minskim
643e3897ca Install directories that actually exist in ${WRKSRC} instead of relying
on TEX_TEXMF_DIRS.  No user-visible change.
2013-10-17 07:07:26 +00:00
minskim
819001b117 Replace shebang lines for texlua. 2013-10-17 04:18:30 +00:00
minskim
4a5e53b13e Add a missing dependency. 2013-10-15 09:24:22 +00:00
richard
4d09fbc407 add -lssp for solaris in print/cups for dependant programs 2013-10-14 05:53:17 +00:00
richard
b3ba2b0562 improve cups builtin kerberos support 2013-10-12 06:01:58 +00:00
ryoon
3fba1a52dd Recursive revbump from pango-1.36.0 2013-10-10 14:41:44 +00:00
wiz
6068eaecf6 recursive bump for libmng-2.0.2 shlib major bump and dependency change 2013-10-09 17:39:01 +00:00
wiz
ee229dfe7c Update to match 0.16 better. Ride import. 2013-10-09 09:48:22 +00:00
wiz
72036d9269 + py-poppler 2013-10-09 09:21:32 +00:00
wiz
7352c01c77 Import py27-poppler-0.12.1 as print/py-poppler.
Poppler is a PDF rendering library based on the xpdf-3.0 code base.

PyPoppler is a wrapper which exposes the poppler API to the python
world. It is fairly complete, most of the API are covered.

The documentation is actually missing, help wanted :)
2013-10-09 09:21:15 +00:00
wiz
fd2d0f1e5c + py-PDF2 2013-10-09 08:53:25 +00:00
wiz
41e34a4b46 Import py27-PDF2-1.18 as print/py-PDF2.
PyPDF2 is a library for handling PDF files for python.  It is an
enhanced version of pyPdf, supporting more PDF files encountered
in the wild with better error handling.
2013-10-09 08:53:07 +00:00
ryoon
00714bb56c Fix build on OpenBSD 5.3.
* Pass LDFLAGS to gsx build etc.
* Pass -lxcb to LDFLAGS for OpenBSD
2013-10-05 05:13:07 +00:00
wiz
141315b6d5 Update to 0.24.2:
Release 0.24.2
        core:
         * Windows: Fix CreateFile fails with ERROR_SHARING_VIOLATION. Bug #69597

        utils:
         * pdfseparate: improve the path building
         * pdftocairo: check file opening failure in beginDocument()
2013-10-04 21:15:40 +00:00
asau
0f44c26f1a Passing "-ansi" turns "long long" support off on FreeBSD/amd64.
Define __LONG_LONG_SUPPORTED to make the package build.
2013-09-25 23:07:31 +00:00
taca
9fba7bb11f Update ruby-pdf-reader to 1.3.3.
v1.3.3 (7th April 2013)
- various bug fixes
2013-09-15 14:40:58 +00:00
jperkin
466c2e6866 SunOS needs -D__EXTENSIONS__ for realpath(). 2013-09-13 10:16:05 +00:00
schnoebe
b3b2c0eb42 Update to 3.13.9:
Added Support for the Following New Printers:

- HP Designjet Z5400 44-in PostScript ePrinter
- HP Deskjet Ink Advantage 1018 Printer
- HP Deskjet Ink Advantage 1518 All-in-One Printer
- HP Deskjet Ink Advantage 2540 All-in-One Printer Series
- HP Deskjet Ink Advantage 2545 All-in-One Printer
- HP Deskjet Ink Advantage 2546 All-in-One Printer
- HP DeskJet Ink Advantage 4515 e-All-in-One Printer
- HP DeskJet Ink Advantage 4518 e-All-in-One Printer
- HP Envy 4504 e-All-in-One
- HP LaserJet Pro MFP M435nw
- HP Officejet 4630 e-All-in-One
- HP Officejet 4632 e-All-in-One Printer
- HP Officejet 4635 e-All-in-One Printer
- HP OfficeJet Pro 8600 Premium e-AiO N911n
- HP Photosmart 5521 e-All-in-One Printer

Launchpad fixes:

1209339  - HP OfficeJet G55 is not detecting through USB
1209352  - Collate broken under Fedora 19/CUPS-1.6/hplip-3.13.7 as hpps
           sends SET COPIES

Issues fixed:

- Added support for print queue addition using hostname(hp-setup
  <HOSTNAME>)
- Fix for plugin installation and test page in 'hp-setup -i'
2013-09-12 16:12:13 +00:00
joerg
f575e6ef8a Fix format string. Fix error handling. Don't bail out on pointer sign
casts for clang.
2013-09-10 14:41:18 +00:00
adam
1886ec16df Changes 9.10:
* Background printing (BGPrint) is a new feature allowing an accumulated page clist to be rendered by one or more rendering threads whilst the interpreter (in the "main" thread) continues to accumulate the subsequent page's clist. For certain classes of file this can result in a useful performance increase.
* GrayDetection allows suitably written devices to detect "color" input in near neutral tones (i.e. near monochrome) and to convert "on-the-fly" to pure grayscale, whilst retaining the ability to print full color on demand. This is primarily aimed at workflows where saving ink (especially color inks) is required.
* LittleCMS2 and libpng have both been updated to the latest versions.
* Support has been added to build the Ghostscript DLL for WinRT for x86, x64 and ARM (Requires MS Visual Studio 2012 Pro).
* Processing of Windows command line arguments into UTF8 (as presaged a few releases ago) has been enhanced and enabled by default.
* The URW Postscript font set has been updated to the latest version, fixing many compatibility problems with the Adobe fonts.
* Plus the usual round of bug fixes, compatibility changes, and incremental improvements.
2013-09-03 06:39:12 +00:00
adam
d2cb6dec32 Revbump after cairo update 2013-09-02 19:50:38 +00:00
wiz
db950f356e Update to 0.24.1. No shlib version change.
Release 0.24.1
        core:
         * SplashOutputDev: use getRGBLine images if available. Bug #66928
         * SplashOutputDev: Don't copy bitmap if we don't need to.
         * PSOutputDev: Fix regression in -eps -level1sep rendering. Bug #68321
         * Fix crash in malformed file 1026.asan.0.42.pdf
         * use copyString instead of strdup where memory is freed with gfree. Bug #67666

        utils:
         * pdfdetach: don't mention xpdfrc
         * pdftotext: Fix -bbox with stdin as input. Bug #45163
         * pdftohtml: Fix jpeg image export. Bug #48270
         * pdfimages: Fix typos in man page

        glib:
         * demo: Remove GTK_DISABLE_DEPRECATED compilation flag

        qt4:
         * Fix small typo in documentation

        qt5:
         * Fix small typo in documentation
2013-09-02 18:40:42 +00:00
joerg
059e6bff7f Fix fallout from poppler API changes. 2013-08-31 14:54:22 +00:00
wiz
df129d9aa2 + tex-algorithm2e-doc 2013-08-29 08:11:29 +00:00
wiz
42136cb02e Fix grammar for bison-3.0. 2013-08-27 18:43:31 +00:00
tron
476278729a Add "share/texmf-dist/doc/latex/ntheorem/ntheorem.pdf" back to the package
list. It still gets installed and referenced by HTML parts of the
documentation.
2013-08-25 10:50:42 +00:00
jaapb
d69e81f296 committed correct PLIST for tex-algorithmicx-doc. 2013-08-24 17:24:45 +00:00
jaapb
5f1e36cc87 Added tex-algorithmicx-doc package. 2013-08-24 17:23:37 +00:00
jaapb
f863b2233f Added package print/tex-algorithmicx-doc, the documentation for
print/tex-algorithmicx.
2013-08-24 17:22:44 +00:00
jaapb
b9ded0b346 Added tex-algorithmicx subdir. 2013-08-24 17:22:08 +00:00
jaapb
69dde89c13 Added print/tex-algorithmicx, a package for typesetting source code and
pseudo-code algorithms with LaTeX.
2013-08-24 17:19:57 +00:00
schnoebe
232ef7d96f Update to hplip 3.13.8:
Release Notes/Change Log:

HPLIP 3.13.8 - This release has the following changes:
Added Support for the Following New Printers:

- HP Deskjet 1510 All-in-One Printer
- HP Deskjet 1512 All-in-One Printer
- HP Deskjet 1513 All-in-One Printer
- HP Deskjet 2540 All-in-One Printer
- HP Deskjet 2542 All-in-One Printer
- HP Deskjet Ink Advantage 1010 Printer Series
- HP Deskjet Ink Advantage 1015 Printer
- HP Deskjet Ink Advantage 1510 All-in-One Printer Series
- HP Deskjet Ink Advantage 1515 All-in-One Printer
- HP Deskjet Ink Advantage 1516 All-in-One Printer
- HP Deskjet Ink Advantage 3540 e-All-in-One Printer Series
- HP Deskjet Ink Advantage 3545 e-All-in-One Printer
- HP Deskjet Ink Advantage 3546 e-All-in-One Printer

Launchpad fixes:

233393  - Smart install disable popup is coming for HP pen drive and HP
          CD/DVD ROM

Change log:

- Added support for Avahi network printer browsing
- Using SLP protocol by default to browse printer in hp-setup
- Fix for Failing to install libtool package in Fedora 18 during HPLIP
  installation


HPLIP 3.13.7 - This release has the following changes:
Added Support for the Following New Printers:

- HP Deskjet 1010 Printer
- HP Deskjet 1012 Printer
- HP ENVY 5530 e-All-in-One Printer
- HP ENVY 5535 e-All-in-One Printer
- HP Officejet 7610 Wide Format e-All-in-One Printer

Added support for the following new Distro's:

- Debian 7.1
- Fedora 19

Launchpad fixes:

746814  - CVE-2010-4267 Remote Stack Overflow Vulnerability
1195221 - Unable to install plugin for network printer Laserjet 2600n
1197306 - HP laserjet 1020 not printing on Ubuntu12.10 after power cycle
	  the printer
1196335 - HPLIP 3.13.6 stop working after shutting down/rebooting the
	  computer

Issues fixed:

- Unable to launch "Align Cartrides" and "Clean Cartridges" interfaces
  from HP Device Manager
- Lot of debug prints(File Pointer is NULL) are found in syslog even
  when hpLogLevel is not 15
- Updated plugin-reason for HP LaserJet Professional P1607dn Printer
  Series
2013-08-24 16:44:15 +00:00
jaapb
8821e74cc8 Split ntheorem package. Bumped PKGREVISION. 2013-08-24 10:59:49 +00:00
jaapb
f5ccbc59ac Added ntheorem-doc package 2013-08-24 10:59:10 +00:00
jaapb
6554773bd5 Added documentation for tex-ntheorem package 2013-08-24 10:58:18 +00:00
jaapb
829abeb224 Added tex-ntheorem package 2013-08-24 10:58:01 +00:00
jaapb
c6115e09ad Added package print/tex-ntheorem, version 1.31. 2013-08-24 10:57:01 +00:00
adam
c01ba419d9 Changes 9.09:
* Background printing (BGPrint) is a new feature allowing an accumulated page clist to be rendered by one or more rendering threads whilst the interpreter (in the "main" thread) continues to accumulate the subsequent page's clist. For certain classes of file this can result in a useful performance increase.
* GrayDetection allows suitably written devices to detect "color" input in near neutral tones (i.e. near monochrome) and to convert "on-the-fly" to pure grayscale, whilst retaining the ability to print full color on demand. This is primarily aimed at workflows where saving ink (especially color inks) is required.
* LittleCMS2 and libpng have both been updated to the latest versions.
* Support has been added to build the Ghostscript DLL for WinRT for x86, x64 and ARM (Requires MS Visual Studio 2012 Pro).
* Processing of Windows command line arguments into UTF8 (as presaged a few releases ago) has been enhanced and enabled by default.
* The URW Postscript font set has been updated to the latest version, fixing many compatibility problems with the Adobe fonts.
* Plus the usual round of bug fixes, compatibility changes, and incremental improvements.
2013-08-22 21:07:08 +00:00
prlw1
36d0ada6e0 Fix build - reported by wiz@. 2013-08-22 15:06:15 +00:00
prlw1
7c95fa6f13 To quote an earlier commit message:
Recursive revbump because poppler updated its shlib major for a
x.y.z+1 change, again...
2013-08-22 09:21:57 +00:00
prlw1
f8e7427c41 Update poppler to 0.24.0.
Release 0.24.0
  core:
   * TextOutputDev: Do not draw ligatures more than once when
     selected. Bug #9001
   * PSOutputDev: Make some pdftops conversions much faster
   * PSOutputDev: Initialize t3FillColorOnly
   * SplashOutputDev: Fallback to 1x1 bitmap if we fail to create
     the real size

Release 0.23.4
  core:
   * TextOutputDev: clip the selected text rendering to the selection
     box. Bug #66983
   * CairoImageOutputDev: Fix the bounding box of saved images

  build system:
   * Improve linking against pthreads

Release 0.23.3
  core:
   * Annotation improvements
   * Fix crashes on malformed files
   * TextSelectionPainter: Draw glyphs after selection background
   * TextOutputDev: add a method to TextPage to get the selection
     as a list of words

  qt5:
   * Initial Qt5 port

  qt4:
   * Windows compile fixes
   * Demo: Allow the choose the page rotation

  build system:
   * Fix mingw build
   * Minor autotools fixes

Release 0.23.2
  core:
   * SplashOutputDev: Speed-up some tiling on a 10x factor
   * Improve caching of lcms2 ICC color profiles
   * Put some private classes in an anonymous namespace

  qt4:
   * Add a thread stresser tool

  build system:
   * Fix mingw build

Release 0.23.1
  core:
   * XRef stream writing: Write 32-bit offsets when possible
   * Fix splashModeBGR8 rendering (Bug #64381)

  glib:
   * Do not use deprecated gtk_scrolled_window_add_with_viewport()
     (Bug #64683)

  build system:
   * Fix Large file support when using cmake

Release 0.23.0
  core:
   * Make rendering thread safe
   * Large file support
   * Implement Crypt filter (Bug #62800)
   * Fix endstream detection (Bug #62985)
   * CairoOutputDev: support uncolored tiling patterns (Bug #59179)
   * SplashOutputDev: Introduce Thin Line mode support (Bug #37347)

  qt4:
   * Expose Thin Line mode support
2013-08-22 09:11:16 +00:00
joerg
e4ad7ec7fc Fix build with recent giflib. 2013-08-17 11:17:48 +00:00