Commit graph

2706 commits

Author SHA1 Message Date
valoq
004a35dba1
support syscalls used by recent glibc versions 2022-11-10 00:23:52 +01:00
valoq
d050449f81
updated syscall filter 2022-11-09 13:30:57 +01:00
valoq
530ffd13a9
document alternative syscalls 2022-11-09 01:18:13 +01:00
Carlos Torres
30fe187da0 Fix Readme typo and missing dep
Changes:
	- Fix Sqlite typo;
	- Add missing 'pkgconf' build dependency;

Signed-off-by: Carlos Torres <torr@disroot.org>
2022-11-05 13:16:29 +01:00
Sebastian Ramacher
9930e031c5 Merge branch 'master' into 'develop'
Add epoll_create1 syscall for copy

See merge request pwmt/zathura!58
2022-10-12 21:45:13 +02:00
valoq
2c4f2ff70a
add epoll_create1 syscall for copy 2022-10-07 02:38:08 +02:00
Sebastian Ramacher
8173968cc9 Merge tag '0.5.1' into develop
Version 0.5.1
2022-09-09 00:17:32 +02:00
Sebastian Ramacher
c7182822c9 Merge branch 'release/0.5.1' 2022-09-09 00:17:27 +02:00
Sebastian Ramacher
892c38006b Version 0.5.1 2022-09-09 00:17:20 +02:00
Sebastian Ramacher
a2e302ce8e Make clone3 fallback to clone 2022-09-09 00:16:41 +02:00
Sebastian Ramacher
4a9206f393 Merge tag '0.5.0' into develop
Version 0.5.0
2022-09-08 23:57:06 +02:00
Sebastian Ramacher
1001473ce8 Merge branch 'release/0.5.0' 2022-09-08 23:57:02 +02:00
Sebastian Ramacher
0e82d492e8 Version 0.5.0 2022-09-08 23:56:54 +02:00
Sebastian Ramacher
5a5316ca61 Set database version on initialization 2022-09-02 13:21:11 +02:00
Sebastian Ramacher
806fa70a7c Replace deprecated get_pkgconfig_variable with get_variable 2022-08-23 00:08:12 +02:00
Sebastian Ramacher
b76227bb9c Merge branch 'fix-uninitialized-value' into 'develop'
Fix use of uninitialized value

See merge request pwmt/zathura!57
2022-08-20 13:54:57 +02:00
Pekka Ristola
41e504a7be
Fix use of uninitialized value
Contents of string `content` are unitialized before copying of `dummy_content`.
Using `g_strlcat` appends `dummy_content` to the uninitialized junk, and
by changing that to `strcpy` the uninitialized values aren't used.

Relevant Valgrind error when running zathura with no arguments:
```
==15845== Conditional jump or move depends on uninitialised value(s)
==15845==    at 0x566EB2D: UnknownInlinedFun (gstrfuncs.c:1534)
==15845==    by 0x566EB2D: g_strlcat (gstrfuncs.c:1521)
==15845==    by 0x12B16D: zathura_db_read_key_file_from_file (database-plain.c:171)
==15845==    by 0x12D39D: UnknownInlinedFun (database-plain.c:295)
==15845==    by 0x12D39D: plain_set_property (database-plain.c:371)
==15845==    by 0x55C17AD: object_set_property (gobject.c:1607)
==15845==    by 0x55C1C1C: g_object_new_internal (gobject.c:2047)
==15845==    by 0x55C3307: g_object_new_valist (gobject.c:2355)
==15845==    by 0x55C383D: g_object_new (gobject.c:1824)
==15845==    by 0x117944: UnknownInlinedFun (database-plain.c:226)
==15845==    by 0x117944: init_database (zathura.c:373)
==15845==    by 0x11B8EA: zathura_init (zathura.c:473)
==15845==    by 0x114B99: UnknownInlinedFun (main.c:111)
==15845==    by 0x114B99: main (main.c:282)
```
2022-08-20 14:38:37 +03:00
Sebastian Ramacher
3a6fea5bb9 Merge branch 'hidpi-ppi-fix' into 'develop'
Fix zathura not rendering on hidpi displays

See merge request pwmt/zathura!55
2022-05-24 15:49:17 +02:00
toluschr
832d9e1bed Fix zathura not rendering on hidpi displays
Related to https://gitlab.gnome.org/GNOME/gtk/-/issues/3115.
Ideally, GNOME could fix their library to return 0 instead of 1.
2022-05-24 15:47:40 +02:00
Sebastian Ramacher
72f3ce1d62 Rename private to priv
Avoid to name variables after a C++ keyword.
2022-05-14 00:20:44 +02:00
Sebastian Ramacher
36065d3bf3 Do not store unused signal handle 2022-05-14 00:13:03 +02:00
Sebastian Ramacher
f5300ce2fa Avoid a function pointer cast 2022-05-13 00:19:11 +02:00
Sebastian Ramacher
c26949ff05 Fix return value 2022-05-13 00:05:27 +02:00
Sebastian Ramacher
2ef85e7329 Also delay the execution of synctex_view (fixes #288)
Send the dbus response first, and then start parsing and rendering of
the synctex forward search.
2022-05-11 17:17:24 +02:00
Sebastian Ramacher
7b78b66c33 Revert "GH: add funding links"
This reverts commit 2af36e27fc.
2022-05-11 08:39:53 +02:00
Sebastian Ramacher
395ecfab68 Print better error message if no plugins are available (fixes #284) 2022-05-08 16:46:44 +02:00
Sebastian Ramacher
fbfbefe18b Remove unused code 2022-05-08 16:43:07 +02:00
Sebastian Ramacher
57f0d79e25 Make magic a required dependency 2022-05-08 15:43:16 +02:00
Sebastian Ramacher
2af36e27fc GH: add funding links 2022-05-08 15:23:35 +02:00
Sebastian Ramacher
f5e0f2401e Merge branch 'master' into 'develop'
Minor improvements

See merge request pwmt/zathura!54
2022-05-08 15:15:06 +02:00
Sebastian Ramacher
53503f610d CI: fix target name 2022-05-08 14:52:16 +02:00
Sebastian Ramacher
f0831f5426 CI: fix target name 2022-05-08 14:51:43 +02:00
Sebastian Ramacher
7c455dfd93 CI: buster -> bullseye, add bookworm, bionic -> focal, eoan -> jammy 2022-05-08 14:50:48 +02:00
valoq
47c67b53bd
update documentation 2022-05-08 14:29:06 +02:00
valoq
076cec96b5
sandbox improvements 2022-05-08 13:43:56 +02:00
Sebastian Ramacher
6b0461be23 Hide an internal type
types.h is for types accessible to plugins.
2022-05-08 10:36:08 +02:00
Sebastian Ramacher
cadb6f2029 Update translations 2022-05-07 23:56:26 +02:00
Sebastian Ramacher
b92388c31a Add clang-format configuration 2022-05-07 23:10:28 +02:00
Sebastian Ramacher
2f0cdb95ec Render synctex rectangles after sending the dbus reply
If rendering of the rectangle takes too long, the connection on the
message bus times out.
2022-05-07 20:55:04 +02:00
Sebastian Ramacher
07e9abc96b Merge branch 'master' into 'develop'
improve seccomp filter

See merge request pwmt/zathura!53
2022-04-23 14:51:12 +02:00
valoq
de0d881f9c
Permit some syscalls on X11 only 2022-04-17 18:28:34 +02:00
valoq
b25637a8be
Allow restricted socket syscall for X11 support 2022-04-13 10:22:59 +02:00
valoq
99c831ab82
improve seccomp filter 2022-04-08 22:59:47 +02:00
Sebastian Ramacher
8ff5a3e49d Merge branch 'master' into 'develop'
Clean process shutdown by sandbox

See merge request pwmt/zathura!52
2022-04-03 21:26:39 +02:00
valoq
b951d024a5
clean process shutdown by sandbox 2022-04-03 20:59:32 +02:00
Sebastian Ramacher
87989da708 Merge branch 'master' into 'develop'
Add rseq syscall to strict sandbox mode

See merge request pwmt/zathura!51
2022-02-15 20:08:25 +00:00
valoq
0cfaac072d
add rseq syscall 2022-02-15 17:59:40 +01:00
Sebastian Ramacher
83663a2cbf Merge tag '0.4.9' into develop
Version 0.4.9
2022-02-13 19:20:13 +01:00
Sebastian Ramacher
4cdd975395 Merge branch 'release/0.4.9' 2022-02-13 19:20:05 +01:00
Sebastian Ramacher
4a99bdda40 Version 0.4.9 2022-02-13 19:20:02 +01:00