Andrew Kelley
a338c279f8
Merge pull request #15565 from xEgoist/spawnWindows
...
child_process: Add write and inheritable access to the null handle
2024-01-16 15:03:25 -08:00
ocrap7
1ce12db5c8
Skip all dbg instructions
2024-01-16 15:01:42 -08:00
melonedo
9b0da5ccef
Fix TLS record overflow by limiting inner record length to 2^14
...
Per last paragraph of RFC 8446, Section 5.2, the length of the inner content of an encrypted record must not exceed 2^14 + 1, while that of the whole encrypted record must not exceed 2^14 + 256.
2024-01-16 14:58:56 -08:00
Purrie
c4a1b54ebe
tls client interface consistency fix
...
Client for tls was using a function that wasn't declared on the
interface for it. The issue wasn't apparent because net stream
implemented that function.
I changed it to keep the interface promise of what's required to be
compatible with the tls client functionality.
2024-01-16 13:02:00 -08:00
Piotr Szlachciak
c724cc6487
Move the paragraph to under variables
2024-01-16 20:18:45 +02:00
Piotr Szlachciak
2d4ebcffbf
Move the extern paragraph to a more logical place
2024-01-16 20:18:45 +02:00
Piotr Szlachciak
6a3f9a0b50
Add missing != null operator
2024-01-16 20:17:29 +02:00
travisstaloch
f3353708d8
AstGen: use correct token_src for switch, if and while exprs
...
fixes #18579
2024-01-16 18:22:44 +02:00
february cozzocrea
da506aaf6e
translate-c: Explicit cast bool from float fix
2024-01-16 18:12:05 +02:00
february cozzocrea
50457482b1
translate-c: Fix for compound assign implicit cast error
2024-01-16 17:57:31 +02:00
Andrew Kelley
195eeed2d8
std: remove deprecated API
2024-01-16 04:20:05 -08:00
Andrew Kelley
fe870418b1
Merge pull request #18584 from Techatrix/fix-switch-on-err
...
fix ast gen failure to catch incorrect by ref error captures
2024-01-16 02:42:06 -08:00
xEgoist
194ed30825
child_process: Use security attributes while creating handle.
...
As suggested by @matu3ba, it can be better to use Security Attributes
directly while creating the handle instead of creating the handle then
setting the handle to inherit. Doing so can prevent potentially leaking
to other parallel spawned processes which would inherit the opened `\Device\Null`
handle.
This change also allows windows.OpenFile to handle when bInheritHandle
is set.
Note that we are using the same `saAttr`, but since it's taken as a
pointer to a const in all calls, it's never mutated, and OpenFile never alters it.
This also saves 1 kernel call for setting the handle to inherit.
2024-01-16 01:25:14 -08:00
xEgoist
41bf816fa6
child_process: Add write access to the null handle
...
This commit allows write access to the `\\Device\\Null` Handle.
Without a write access, it's not possible for the child process to write
SdOut to Null. As a requirement `SetHandleInformation` was also changed
to mark the handle as iheritable (by adding it to Flags) by the spawned process.
This allows the child to access the NUL device that was opened.
This also makes the Windows part to behave similarly to `spawnPosix`.
2024-01-16 01:25:14 -08:00
Krzysztof Wolicki
7116b02210
Allow multiple options using the same enum type
2024-01-15 23:08:11 -08:00
Andrew Kelley
88ee323cd7
Merge pull request #18570 from gh-fork-dump/linux-6.7
...
Linux: Update syscall bits for 6.7
2024-01-15 23:04:02 -08:00
Andrew Kelley
d1ce8b8837
Merge pull request #18168 from cipharius/feature/zig-build-fossil-support
...
Adds support for Fossil SCM source tree archives as zig build dependencies
2024-01-15 23:02:50 -08:00
Andrew Kelley
ca8c6dd4d6
Merge pull request #18569 from dweiller/17944-followup
...
17944 followup
2024-01-15 22:59:33 -08:00
Andrew Kelley
fcc94f5431
Merge pull request #18468 from notcancername/legalize-arraylist
...
std.array_list: Document and reduce illegal behavior in ArrayLists
2024-01-15 22:46:27 -08:00
Andrew Kelley
f2721a4cbc
std.ArrayList: pedantic rewordings of documentation and unit tests
2024-01-15 23:44:36 -07:00
notcancername
69461bcae4
std.array_list: Document and reduce illegal behavior in ArrayLists
2024-01-15 23:44:36 -07:00
Techatrix
06410f58bd
AstGen: properly handle ill-formed switch on error
2024-01-16 05:55:26 +01:00
Techatrix
8b9425c248
AstGen: add error message for capture error by ref in switch on error
2024-01-16 05:55:26 +01:00
cipharius
f25c499d12
Permits tar directory path without trailing slash
2024-01-15 18:31:32 +02:00
cipharius
2e77956629
Accepts generic application/x-compressed in package fetch
2024-01-15 18:26:12 +02:00
dweiller
a219c9faaa
test/behavior: fix test type check for multi-ptr slice
...
The original test was checking the types of irrelevant slices, the test
is for slicing of multi-pointers _without_ an end value, but the types
of slices with an end value were being checked.
2024-01-15 20:55:01 +11:00
dweiller
8108c9f4d2
test/behavior: replace all 'comptime expect' with 'comptime assert'
2024-01-15 20:55:01 +11:00
dweiller
1861423862
sema: fix OOM bug when constructing error messages
2024-01-15 20:55:01 +11:00
Stephen Gregoratto
3200fae9c5
Linux: Add syscall bindings, enhance documentation.
...
- Add syscall bindings/structures for the `futex2` family.
The documentation is taken from the syscall definitions.
- Add documnentation for the `cachestat` bindings and structures.
Taken from work I did in Cosmopolitian libc.
- Add binding for `map_shadow_stack`.
No documentation for this one, since the kernel devs didn't bother to
do it ¯\_(ツ)_/¯.
2024-01-15 20:05:03 +11:00
Stephen Gregoratto
cca021c211
Linux: Update syscalls for the 6.7 release
...
This release adds the rest of the futex2[1] syscalls, along with
shadow stack[2] support for more architectures.
[1]: https://lwn.net/Articles/940944/
[2]: https://lwn.net/Articles/926649/
2024-01-15 20:05:03 +11:00
Andrew Kelley
32e88251e4
update test case for new const/var compile error
...
commit 8afafa717f5c036595a3a781c63b6be7b478c025 was created when this
error did not exist yet.
2024-01-15 01:53:41 -07:00
Jacob Young
03ed3f56cf
Sema: fix @extern decls
...
Closes #18550
2024-01-15 07:39:05 +01:00
Jakub Konka
3dddb881bf
Merge pull request #18560 from ziglang/elf-report-dupes
...
elf: report duplicate symbol definitions
2024-01-15 07:37:09 +01:00
Jakub Konka
852e7e24b5
Merge pull request #17917 from Jan200101/PR/each_lib_rpath_frontend
...
move rpath to frontend and remove native paths from it
2024-01-15 07:35:12 +01:00
David Rubin
9097bcc06e
add SHT_NOBITS check
2024-01-15 05:27:54 +01:00
Andrew Kelley
f0bac8037c
Sema: fix compilation errors
...
Commit 8afafa717f5c036595a3a781c63b6be7b478c025 passed CI checks against
an older codebase and accumulated silent conflicts.
2024-01-14 19:21:19 -07:00
Andrew Kelley
a5934edd48
std.os.linux.io_uring: fix compilation errors
...
Commit f0c42fbba15a31113dc989ab65c054047423afa3 was created before the
additional compile error for var used instead of const.
2024-01-14 19:20:41 -07:00
Andrew Kelley
f0c42fbba1
Merge pull request #18025 from ianic/io_uring_send_zc
...
io_uring: add send_zc and *_direct operations
2024-01-14 18:10:51 -08:00
expikr
ff23efe9fa
Update pow.zig
2024-01-14 18:09:26 -08:00
expikr
0c70d9c714
use Peer Type Resolution for standalone complex fn
...
use peer type resolution
Update complex.zig
Revert "use peer type resolution"
This reverts commit 1bc681ca5b36d2b55b5efab5a5dbec7e8a17332e.
Revert "Update pow.zig"
This reverts commit 5487e8d3159f832b5a0bf29a06bd12575182464f.
Update pow.zig
Revert "Update pow.zig"
This reverts commit 521153d1ef004d627c785f2d3fe5e6497dc15073.
Update pow.zig
2024-01-14 18:09:17 -08:00
Tristan Ross
9fce1d1ab1
mem: add byteswap array support ( #17959 )
...
also make byteswap work with enums
2024-01-14 21:06:31 -05:00
expikr
f9d8176e94
Update atan2.zig ( #17840 )
...
Co-authored-by: castholm <carl@astholm.se>
2024-01-14 21:04:30 -05:00
expikr
1a7a711964
std.math: add wrap function ( #18154 )
2024-01-14 20:45:39 -05:00
dweiller
8afafa717f
sema: allow slicing *T with comptime known [0..1]
2024-01-14 17:26:45 -08:00
Jakub Konka
b1ffc2b8b3
test/link/elf: patch up relocatable test
2024-01-15 00:18:50 +01:00
Jan200101
8707555c0b
compiler: move each_lib_rpath to frontend
...
Co-authored-by: Andrew Kelley <andrew@ziglang.org>
2024-01-14 16:16:00 -07:00
Jan200101
e517d5a51e
std.zig.system.NativePaths: add NixOS lib dirs to the rpath
2024-01-14 15:57:45 -07:00
Jakub Konka
a8b9f0cf22
std/Build/Step/Compile: do not propagate deps of complex addObject step
2024-01-14 23:07:21 +01:00
Jakub Konka
d7c2324cdb
test/link/elf: trigger build system bug testing relocatable mode
2024-01-14 20:51:03 +01:00
Jakub Konka
7a96907b92
elf: check for and report duplicate symbol definitions
2024-01-14 20:39:00 +01:00