Commit graph

12930 commits

Author SHA1 Message Date
Thomas Devoogdt
5dc457fa92 meson: only require cpp for windows
Allow to compile meson without c++ toolchain.

Fixes:
 - https://lore.kernel.org/buildroot/20240717200926.1a7db2a1@windsurf/

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
2024-07-18 10:29:19 +00:00
Adrian Johnson
5338d3f50d Merge branch 'clang-build' into 'master'
Add clang build to CI

See merge request cairo/cairo!572
2024-07-05 23:10:13 +00:00
Adrian Johnson
86a6a3a2ec offsetof is ANSI C
Fixes

  166 |     A = csi_container_of (link, csi_blob_t, list);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../util/cairo-script/cairo-script-private.h:132:33: note: expanded from macro 'csi_container_of'
  132 |     (type *) ((char *) mptr__ - offsetof (type, member)); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~
../util/cairo-script/cairo-script-private.h:128:37: note: expanded from macro 'offsetof'
  128 |     ((char *) &((type *) 0)->member - (char *) 0)
      |                                     ^ ~~~~~~~~~~
2024-07-06 07:24:44 +09:30
Adrian Johnson
f4096fc26b Add clang build to CI 2024-07-06 07:12:59 +09:30
Adrian Johnson
19c15cedbf Merge branch 'various-fixes' into 'master'
Various fixes

Closes #851, #850, #849, #848, #847, #846, and #845

See merge request cairo/cairo!570
2024-06-26 22:15:15 +00:00
Adrian Johnson
64301c6105 doc: Ensure @ in "@cairo:" is escaped when referring the the font family name
Fixes: #851
2024-06-27 07:07:22 +09:30
Adrian Johnson
c8ce9f1900 Check return value of _cairo_boxes_copy_to_clip()
Fixes: #850
2024-06-27 07:07:22 +09:30
Adrian Johnson
545073d7ed Ensure extent_y_scale is initialized
Fixes: #849
2024-06-27 07:07:22 +09:30
Adrian Johnson
c235bc4dee Fix bug in cairo-trace when writing A8 images
Fixes: #848
2024-06-27 07:07:22 +09:30
Adrian Johnson
fff7b8f392 Make Coverity happy
Fixes: #847
2024-06-27 07:07:22 +09:30
Adrian Johnson
2f671582ee Ensure face variables in cairo_stroker_t are initialized
Fixes: #846
2024-06-27 07:07:22 +09:30
Adrian Johnson
6967beb24e ps: fix max form size
Fixes: #845
2024-06-27 07:07:22 +09:30
Adrian Johnson
16dd5cd4c2 Merge branch 'wip/otte/xlib-overflow' into 'master'
xlib: Enlarge array for new formats

See merge request cairo/cairo!567
2024-06-24 21:26:26 +00:00
Adrian Johnson
409a6b5229 Merge branch 'master' into 'master'
Fix a memory leak

See merge request cairo/cairo!568
2024-06-24 21:18:07 +00:00
Adrian Johnson
bccc70439e Merge branch 'uninitialized-var' into 'master'
Avoid an uninitialized use

See merge request cairo/cairo!569
2024-06-24 21:16:38 +00:00
Matthias Clasen
f1d1f0ac77 Avoid an uninitialized use
Coverity complained that val may be used uninitialized in this
function, and I think it is right in this case.
2024-06-24 14:25:32 -04:00
Matthias Clasen
dd40d34fee Fix a memory leak
Coverity flagged this minor memory leak.
2024-06-24 14:17:00 -04:00
Benjamin Otte
18bb4f50cf xlib: Enlarge array for new formats
Fixes a potential overflow in _cairo_xlib_display_get_xrender_format().

Caught by Coverity
2024-06-24 18:08:47 +00:00
Adrian Johnson
b807b7a87a Merge branch 'calloc' into 'master'
Use calloc to allocate structs

See merge request cairo/cairo!566
2024-06-24 08:46:51 +00:00
Adrian Johnson
0cae2a4a74 Use _cairo_calloc() to allocate structs
To avoid any possibility of uninitialized memory.

The exceptions are:
 - where the allocation is immediately overwritten by a memcpy or struct copy.
 - arrays of structs to avoid any performance impact (except when the
   array is returned by the public API).
2024-06-21 10:32:23 +09:30
Adrian Johnson
8da24bf7fb Make _cairo_calloc() consistent with _cairo_malloc()
ie

  _cairo_calloc(size)
  _cairo_calloc_ab(a, size)
2024-06-21 08:53:01 +09:30
Adrian Johnson
0700bb78a2 Merge branch 'ft-no-fc' into 'master'
Fix FreeType build failure when Fontconfig is disabled

See merge request cairo/cairo!564
2024-06-11 21:39:10 +00:00
Adrian Johnson
f1b781e99d Build mingw-32 in CI with fontconfig disabled
This gives us one build in CI that has FreeType enabled and Fontconfig
disabled in order to ensure this combination builds.

Building the Fontconfig backend with Mingw is still checked in the
mingw-64 build.
2024-06-10 13:18:56 +09:30
Adrian Johnson
00ce12846a Fix cairo-ft-font.c build failure when fontconfig not available 2024-06-10 11:07:46 +09:30
Adrian Johnson
a308881018 Merge branch 'cloexec' into 'master'
Set CLOEXEC when opening files

Closes #213

See merge request cairo/cairo!563
2024-06-08 22:20:17 +00:00
Adrian Johnson
b0b5562b9e Set CLOEXEC when opening files
Based on the patch by Christian Persch in #213.

Closes #213
2024-06-08 06:40:55 +09:30
Adrian Johnson
1193515f5d Merge branch 'meson-fixes' into 'master'
A couple of meson fixes

See merge request cairo/cairo!561
2024-06-01 13:17:30 +00:00
Adrian Johnson
b00db10ae8 meson: Use cc.has_define instead of cc.get_define for variables that may be undefined
Fixes the message:

  Fetching value of define "DEBUG_SVG_RENDER" : (undefined)
2024-06-01 21:34:41 +09:30
Adrian Johnson
4f38b502e5 Fix meson deprecation warning
test/meson.build:663: WARNING: Project targets '>= 1.3.0' but uses feature deprecated since '0.64.0': copy arg in configure_file. Use fs.copyfile instead
2024-06-01 21:34:35 +09:30
Adrian Johnson
f0a651e1ac Merge branch 'c11-atomics' into 'master'
Add support for C11 atomics

See merge request cairo/cairo!479
2024-05-31 09:40:37 +00:00
Uli Schlachter
01a8ca0518 Merge branch 'master' into 'master'
Update to add sunos

See merge request cairo/cairo!526
2024-05-28 16:30:57 +00:00
Adrian Johnson
09779a7e58 Merge branch 'update-fontconfig-and-libpng' into 'master'
Update fontconfig and libpng versions

See merge request cairo/cairo!558
2024-05-26 23:09:52 +00:00
Uli Schlachter
9fcfdce216 Merge branch 'remove-unused-files' into 'master'
Remove two unused files

See merge request cairo/cairo!560
2024-05-26 19:41:16 +00:00
Adrian Johnson
a141cfdf51 Merge branch 'pdf-structure-test' into 'master'
Enable pdf-structure test

See merge request cairo/cairo!559
2024-05-26 11:53:14 +00:00
Adrian Johnson
87f7c60bf7 Add support for C11 atomics 2024-05-26 21:17:39 +09:30
Uli Schlachter
5d67d28ff0 Remove two unused files
There are two check-link.c files which were "tests" in the autotools
build and are unused ever since the autotools build was removed.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2024-05-26 07:14:57 +02:00
Adrian Johnson
b31ca9a3c3 Enable pdf-structure test
Fedora 40 contains a recent version of poppler that supports
extracting the pdf structure.

And add missing pdf-structure ref data.
2024-05-25 19:51:28 +09:30
Adrian Johnson
8d0650bb60 Use intptr_t for cairo_atomic_intptr_t
Since we now require C11 we can use intptr_t instead of figuring out
the right int size.
2024-05-25 19:05:44 +09:30
Adrian Johnson
b3656ed596 Update required libpng version 2024-05-25 10:25:51 +09:30
Adrian Johnson
bc4dfe51d2 Update required fontconfig version 2024-05-25 10:19:30 +09:30
Adrian Johnson
24d00b6309 Merge branch 'update-freetype' into 'master'
Update minimum FreeType to 2.10

See merge request cairo/cairo!557
2024-05-25 00:37:27 +00:00
Adrian Johnson
7f88aea155 ft: replace deprecated FT_Get_X11_Font_Format() 2024-05-25 09:02:53 +09:30
Adrian Johnson
94e3c5ce81 Update minimum FreeType to 2.10
and remove feature guards for FT functions that are in 2.10 or later.
2024-05-25 09:02:53 +09:30
Adrian Johnson
212f458949 Merge branch 'cff-global-subs-fix' into 'master'
CFF Fix crash when allocating zero size array

See merge request cairo/cairo!553
2024-05-24 21:44:13 +00:00
Adrian Johnson
1f0b80ed50 Merge branch 'update-meson-wraps' into 'master'
Update meson wraps

See merge request cairo/cairo!556
2024-05-24 21:29:49 +00:00
Uli Schlachter
f43dcc212d Merge branch 'fix-gradient-scale-crash' into 'master'
Fix "out of memory" when using linear gradient

Closes #789

See merge request cairo/cairo!535
2024-05-24 15:41:38 +00:00
Adrian Johnson
60fea22d5d Update meson wraps 2024-05-23 09:10:38 +09:30
Adrian Johnson
4796138f39 Merge branch 'pdf-finish' into 'master'
pdf: return subset status and always cleanup

See merge request cairo/cairo!554
2024-05-22 20:42:04 +00:00
Adrian Johnson
f3b3542456 Merge branch 'c11' into 'master'
Require C11

See merge request cairo/cairo!555
2024-05-22 20:38:41 +00:00
Koichi Akabe
d163670f97 Merge branch 'master' into fix-gradient-scale-crash 2024-05-22 10:19:50 +09:00