Commit Graph

31 Commits

Author SHA1 Message Date
John Cupitt
2c4c039056 add "unlimited" to jpegload
To disable DoS limits for JPEG loading. Adding API on a stable branch is
bad, but this fixes a regression, so I think it's necessary,
unfortunately.

See https://github.com/libvips/libvips/issues/2973
2022-08-02 13:50:09 +01:00
John Cupitt
1c600c83b6 test jp2k in test_formats.sh 2022-06-23 10:03:29 +01:00
Kleis Auke Wolthuizen
468c13693b
CI: upgrade runner to Ubuntu 22.04 (#2850)
* CI: upgrade runner to Ubuntu 22.04

- Compile with GCC 11 and Clang 14.
- Remove redundant PPAs.
- Use system provided Meson.
- Update LeakSanitizer suppressions.

* CI: ensure `VIPS_BLOCK_UNTRUSTED` is tested

`magicksave` cannot be used for testing when building with
`-Dmodules=enabled` (default), since that would require the
loadable modules to be installed first.
2022-06-12 12:24:30 +01:00
John Cupitt
eba9ec0dd7
Add a way to disable less well tested operations (#2636)
* quick proposal

warn on startup if untrusted operations might run

use vips_block_untrusted_set() to block untrusted operations, set an env
var or make a file to stop the warning

* mark fits, nifti and svg as untrusted

* remove the annoying "untrusted" warning message

better to warn on the download page

leave vips_block_untrusted_set() since it's obviously useful

* separate UNTRUSTED and BLOCKED

* typos

* add VIPS_BLOCK_UNTRUSTED env var

* move BLOCK_UNTRUSTED after plugin load

obviously, ooops

* add a test, disable *magick

although *magick is fuzzed, it's probably safer to disable it in
untrusted environments

* mark some more operations as untrusted
2022-04-11 11:32:32 +01:00
John Cupitt
99f535c57a add streams.c test
tests VipsStream*u, at a basic level at least.
2019-11-24 18:22:43 +00:00
John Cupitt
ceb2db513d Merge branch '8.8' 2019-11-11 18:05:57 +00:00
John Cupitt
efcd31b498 add something to test the new restart system
do multiple renders from one seq iage, check fds are opened and closed
as expected

see https://github.com/libvips/libvips/issues/1370
2019-10-06 07:25:09 +01:00
John Cupitt
f2319da762 remove svg test from test_formats.sh
It was very unreliable -- the output of librsvg varies too much between
librsvg versions.

This is still tested by the Python test suite.
2019-09-17 16:26:23 +01:00
Felix Bünemann
1abc5f901a Add palette flag to trigger pngsave quantisation
and tweak docstrings.
2018-06-19 22:41:40 +02:00
Felix Bünemann
1e68b3a486 Rename pngsave colors/colours, quantize/quantise 2018-06-19 21:32:44 +02:00
Felix Bünemann
d9d2f7b89a Add 8bpp PNG quantization support
This adds support for saving 8-Bit one band palette based PNG images
with palette based alpha channel (often called PNG8+Alpha).

The image is first converted to sRGBA and then quantized using
libimagequant controlled by the colors, Q and dither params.
2018-06-18 02:22:46 +02:00
John Cupitt
0ade2e972f reenable png interlace test
reenable png interlace test after the fix in

https://github.com/jcupitt/libvips/pull/821
2017-12-05 08:38:52 +00:00
John Cupitt
a8fb38fb6a Merge branch '8.5' 2017-07-08 16:06:18 +01:00
John Cupitt
f3393fb89b try to fix cli format test
add a threshold for svgload, librsvg seems to vary a bit between
platforms
2017-07-08 15:26:48 +01:00
John Cupitt
7408c6c9b2 fix sh part of test suite 2017-07-08 15:09:35 +01:00
John Cupitt
cbd9fad040 fix a few more problems with input args
a few other operators were modifying input args and messing up caching
2017-05-29 18:58:24 +01:00
John Cupitt
d5934d606a polishing 2016-11-08 14:42:54 +00:00
Felix Bünemann
e71c247764 Make sure test_formats.sh exits on errors
This is required to make sure we fail if a vips command fails, eg. due
to a missing fixture.
2016-06-02 23:10:14 +02:00
Felix Bünemann
fdeb1b3b12 Test gifload in make check and on Travis CI 2016-05-27 01:26:45 +02:00
Felix Bünemann
f9dc33c8f2 Test svgload in make check and on Travis CI 2016-05-27 01:26:45 +02:00
Felix Bünemann
4640aab388 Test against system libwebp on Travis CI
* Dropped custom ppa used only for libwebp backport
* Dropped lossless test from `make check` (not supported in 0.1.3)
2016-05-09 12:29:23 +02:00
Felix Bünemann
bec6b174c9 Fix poppler version requirement, add loader check
This fixes the poppler-glib version requirement to version 0.16, which
is the lowest version that compiles and works properly with pdfload.

Also added a check for pdfload and enabled testing on Travis CI.
2016-05-09 00:16:48 +02:00
Felix Bünemann
27e3198833 Add webp save/load format tests for "make check" 2016-04-24 18:28:53 +02:00
John Cupitt
c15f37719b add test_foreign.py
plus some more test images
2015-02-16 16:03:39 +00:00
John Cupitt
4d0887f5de fix .dz as a target
and add a test for this as well
2015-02-13 11:17:55 +00:00
John Cupitt
1b86de44f4 "make check" works uninstalled
and skips tests for missing features
2014-12-22 10:35:26 +00:00
John Cupitt
39c2bf9291 more stuff for homebrew 2014-12-20 17:12:12 +00:00
John Cupitt
932a16b615 improvements to test to help osx 2014-12-20 16:17:44 +00:00
John Cupitt
3d1469179c add the test_thumbnail script too 2014-11-20 14:36:04 +00:00
John Cupitt
810abeea34 small fixups 2014-11-19 17:32:29 +00:00
John Cupitt
ee4416040b make a test suite
put the python and non-nip2 bits of the nip2 suite together

some test images too
2014-11-19 15:01:28 +00:00