Commit Graph

1832 Commits

Author SHA1 Message Date
nikita 29be5f3f57 lua: fix ftb in lstrlib.c for clang
(error: enumeration values 'Knumber' and 'Kdouble' not handled in switch [-Werror,-Wswitch])
2023-04-23 20:52:39 +00:00
nikita 7535478ee0 lua: formatting in lvm.c 2023-04-22 19:41:15 +00:00
nikita 160c9084ef lua: fix formating diff to upstream in ldo.h 2023-04-21 17:48:06 +00:00
nikita 4fd395ecb3 lua: fix ftb in lvm.c 2023-04-21 17:31:33 +00:00
nikita a384b59408 lua: mention patches with commit IDs in README.import for now. 2023-04-18 14:07:03 +00:00
nikita 79fd713a55 lua: apply upstream bugfix for "Loading a corrupted binary file can segfault." 2023-04-17 21:17:57 +00:00
nikita d08cb505c1 lua: apply upstream bugfix for "Wrong line in error message for arithmetic errors."
It also causes 'L->top' to be wrong when the error happens,
triggering an 'assert'.
2023-04-17 20:37:43 +00:00
nikita cf02d049ea lua: apply ustream bugfix for "C-stack overflow with deep nesting of coroutine.close." 2023-04-17 20:33:12 +00:00
nikita d5cb192484 lua: apply upstream bugfix for "'utf8.codes' does not raise an error on spurious continuation bytes." 2023-04-17 20:27:40 +00:00
nikita 7ae600e361 lua: apply upstream bugfix for "GC not setting a proper target for next cycle after a full collection in generational mode." 2023-04-17 20:17:58 +00:00
nikita 29dfad4c22 lua: apply upstream bugfix for "'break' may not properly close variable in a 'for' loop."
Function 'leaveblock' was generating "break" label before removing
variables from the closing block. If 'createlabel' created a 'close'
instruction (which it did when matching a goto/break that exited
the scope of an upvalue), that instruction would use the wrong level.
2023-04-17 20:07:32 +00:00
nikita 6c647b8126 lua: aply upstream bugfix for "'lua_settop' may use a pointer to stack invalidated by 'luaF_close'." 2023-04-17 19:54:19 +00:00
nikita b045a66584 lua: apply upstream bugfix for "Lua-stack overflow when C stack overflows while
handling an error." (CVE-2022-33099)

 Save stack space while handling errors

Because error handling (luaG_errormsg) uses slots from EXTRA_STACK,
and some errors can recur (e.g., string overflow while creating an
error message in 'luaG_runerror', or a C-stack overflow before calling
the message handler), the code should use stack slots with parsimony.

This commit fixes the bug "Lua-stack overflow when C stack overflows
while handling an error".
2023-04-17 19:35:36 +00:00
nikita 8e4bc22641 lua: apply upstream bugfix for "Wrong code generation for constants in bitwise operations." 2023-04-17 19:19:00 +00:00
nikita 941520fea0 lua: apply upstream bugfix for "Lua can generate wrong code when _ENV is <const>." 2023-04-17 19:17:49 +00:00
nikita b1068501d7 lua: Apply upstream bugfix for "lua.c assumes that argv has at least one element." 2023-04-17 19:16:38 +00:00
nikita f0dad708b3 Resolve conflicts for lua 5.4.4 import.
Adjust various files for lua 5.4.4.
2023-04-16 20:46:16 +00:00
mrg f080a0a61e updates for xkeyboard-config 2.38. 2023-03-23 06:23:13 +00:00
mrg 4fc5460497 obsolete several xorg-server.old configurations and normalise some comments. 2023-02-27 00:34:11 +00:00
mrg 8a59e5b8bc updates for xf86-video-trident 1.4.0. 2023-02-26 20:19:05 +00:00
mrg 2050d7154a arrange for ftoption.h to define FT_CONFIG_OPTION_USE_BROTLI but not for tools
guard the definition in ftoption.h with #ifndef TOOL_FCCACHE, and build the
tools portions with this defined if not already set.

this fixes building pkgsrc blender with native x11.
2023-02-24 17:08:31 +00:00
nros 7f44bdb165 Fix xkb_base in the pkg-config file and mapage for xkeyboard-config
The xkbdata files are installed in /usr/X11R7/lib/X11/xkb
not /usr/X11R7/share/X11/xkb. The wrong directory causes
build failures in pkgsrc packages that use the xkb_base
variable.
Also base the datadir on the vars from bsd.x11.mk.
Also use @xkb_base@ instead of /usr/X11R7/share/lib/X11/xkb
in the manpage to show the right xkbdata directory.
2023-02-10 13:22:58 +00:00
mrg 02b3973ae9 apply -g1 to the gallium sources as well. saves another couple of 100MB. 2023-02-07 06:19:03 +00:00
wiz b17ce4f0d4 stop building and installing xfwp
As proposed on tech-x11
https://mail-index.netbsd.org/tech-x11/2022/12/29/msg002333.html
2023-02-04 16:34:36 +00:00
mrg 3b22396b89 build framework for embedded brotli.
need to figure out a way to handle tools build vs installed build
before we can enable it in freetype itself.
2023-01-29 07:54:11 +00:00
mrg 7474491c39 add missing ./etc/fonts/conf.avail/10-yes-antialias.conf, noted by wiz. 2023-01-28 05:25:17 +00:00
tsutsui e8864e5e82 Fix link errors now complained by new ld(1) from binutils 2.39. 2023-01-26 17:16:57 +00:00
tsutsui 705e8dbf3a No need to link shared libXext here. 2023-01-26 17:09:46 +00:00
christos 176d022770 fix clang build 2023-01-25 22:35:06 +00:00
christos 94c73665db Disable optimization on vax 2023-01-22 20:36:46 +00:00
christos 750e84418f Disable MT for lint since we don't have stdatomic.h 2023-01-22 14:35:10 +00:00
mrg 438090b61f updates for fontconfig 2.14.1. 2023-01-21 04:04:30 +00:00
mrg 0ba9aba167 add $NetBSD$ 2023-01-20 10:20:05 +00:00
martin 6fc9923684 Pass -DALIGNOF_VOID_P with proper size to fix the tools build 2023-01-19 17:07:38 +00:00
mrg 7cfe05bb83 updates for fontconfig 2.14. 2023-01-19 06:29:10 +00:00
mrg f79bf3a1ed updates for libXpm 3.5.15. 2023-01-19 05:31:34 +00:00
mrg 6495c6c00b also link -lintl. 2023-01-08 12:00:21 +00:00
mrg 70f8c22c25 enable gettext support 2023-01-08 11:20:28 +00:00
mrg 6a42d72a8f set -D_CONST_X_STRING for new xfd. 2023-01-08 09:56:11 +00:00
mrg 6a7b1ba139 set -DHAVE_STRLCPY -DHAVE_STRLCAT for new lndir. 2023-01-08 09:55:38 +00:00
mrg a47902518d handle .pc updates. prepare to enable uuid support. 2023-01-08 09:10:58 +00:00
mrg 7ac241b63c handle @LIBBSD_LIBS@ in the new .pc file. 2023-01-08 06:04:43 +00:00
nikita 037c929743 Import Lua 5.4.4 2023-01-02 20:57:29 +00:00
nikita 303f0546f6 removed wrong imported directory. 2022-12-29 10:41:12 +00:00
nikita 68292da9ab Import Lua 5.4.4 2022-12-29 09:45:56 +00:00
christos f54b5dc0f9 Need -lxcb for xcb_create_pixmap 2022-12-25 23:05:58 +00:00
mrg 535d9694a5 handle pixman revert. 2022-12-17 09:46:21 +00:00
mrg 9ed7bbdd94 add a 'check' target to run the tests (needs to be on the same arch as host.) 2022-11-13 21:57:12 +00:00
mrg f017fad334 add build infrastructure to build the pixman tests
not built or installed by default.
2022-11-13 09:36:37 +00:00
mrg e966477c11 add -D_CONST_X_STRING, like new upstream 2022-11-13 05:26:07 +00:00