Laytan and GitHub
bb20b03f2e
Merge pull request #4887 from Skytrias/skytrias-orca-ui-update
...
Update to newest orca bindings (UI Update)
2025-03-01 13:58:55 +01:00
Michael Kutowski
57a1264450
proper enums
2025-03-01 13:33:23 +01:00
gingerBill and GitHub
bb429696f8
Merge pull request #4877 from laytan/os2-additions
...
os/os2: recursive directory walker, expose errors in read_directory, file clone
2025-02-28 14:37:47 +00:00
gingerBill and GitHub
8a8894a981
Merge pull request #4891 from Feoramund/fix-4890
...
Fix #4890
2025-02-28 14:08:27 +00:00
gingerBill
79944056b9
Add Error to os2.set_env
2025-02-28 13:52:51 +00:00
gingerBill
b3bbb00f1a
Add Error as part of the return values of os2.environ
2025-02-28 13:43:50 +00:00
Feoramund
b2e3b34ce0
Fix #4890
...
`strings.to_cstring` previously would not check if the buffer could
handle the extra null byte and could lead to segmentation violations
when using the resulting string in an API expecting the terminator.
2025-02-27 18:54:38 -05:00
Michael Kutowski
43c54d4de8
Update to newest orca bindings (UI Update), remove logging due to cyclic import (fmt usage)
2025-02-26 23:03:44 +01:00
Roman Osipov
a1597022af
Add DWM_WINDOW_CORNER_PREFERENCE enum for window corner preferences
2025-02-26 12:23:49 +03:00
Githubaccountlol and GitHub
88f423a38b
Update doc.odin
2025-02-26 03:04:54 -06:00
gingerBill
cae91c9472
Fix rune printing with %b
2025-02-25 15:53:06 +00:00
Laytan Laats
22ab8935c4
slice: use card in bitset_to_enum_slice_with_make
...
Fixes #4870
2025-02-24 21:10:12 +01:00
Laytan Laats
0e4140a602
os/os2: recursive directory walker, expose errors in read_directory, file clone
...
Adds a directory walker, a method of exposing and retrieving errors from
the existing read directory iterator, allows reusing of the existing
read directory iterator, and adds a file clone procedure
2025-02-24 20:40:44 +01:00
gingerBill and GitHub
0781526b35
Merge pull request #4466 from Barinzaya/simd_extract_msbs
...
SIMD Extract MSbs/LSbs Intrinsics
2025-02-24 14:04:07 +00:00
Barinzaya
4afedbc051
Added simd_extract_lsbs intrinsic as well.
...
Equivalent to the simd_extract_msbs intrinsic, except it extracts the
least significant bit of each element instead.
2025-02-24 08:49:57 -05:00
gingerBill
ef016d957b
Add @(require_results) to random generator
2025-02-24 13:48:07 +00:00
Barinzaya
33a3aab791
Added simd_extract_msbs intrinsic.
2025-02-24 08:39:32 -05:00
Keenan Woodall
a709876788
SavePanel_URL returns ^URL instead of ^Array
2025-02-23 19:00:27 -06:00
Christiano Haesbaert
42d7e7a402
Fix multiple vulnerabilities in the resolver
...
This fixes some vulnerabilities in the resolver that make spoofing DNS
queries somewhat trivial due to the code failing to randomize xid, as
well as match the reply xid with the query, and the origin of the packet:
- xid of the query was fixed at zero
- xid from the reply was never checked
- source address of the reply was never checked
This means anyone can flood the host with a fake reply with xid 0,
guessing the source port is trivial as it's less than 16bits (2^16 -
1024), which would cause odin to resolve a hostname to whatever an
attacker wanted.
While here also plug in two memory leaks.
Since this is CVE material, I've contacted @kelimion before hand which
instructed to put it in a PR.
There are also more bugs as the code conflates answer section,
authority section and aditional section into one, while in reality
only the anwer section should be taken into consideration.
2025-02-23 17:28:32 +01:00
Jeroen van Rijn
940da61869
Fix missing error when TCP connection refused.
...
Fixes #4867
2025-02-23 12:47:22 +01:00
gingerBill and GitHub
9dc4d5a4e6
Merge pull request #4845 from Barinzaya/fmt_variable_wp_without_index
...
Variable Width/Precision Without Index in `fmt`
2025-02-20 08:49:48 +00:00
Laytan Laats
cae3f13d9f
mem/virtual: specify max protection on mmap call in NetBSD and FreeBSD
2025-02-18 18:33:19 +01:00
dozn
b99aee65bf
Pass in allocator and loc to core:flags.parse()
2025-02-15 08:47:08 -08:00
Barinzaya
dc2c9b5d51
Support use of * in format strings without an index.
...
This allows `*` to be used in C fashion, without specifying an argument
index to use. Like C, this results in the argument *preceding* the value
for the format specifier itself.
2025-02-14 10:44:42 -05:00
Laytan Laats
435f77b16b
fix space indentations
2025-02-12 19:33:41 +01:00
Laytan Laats
55302280d8
fix addrinfo struct def
...
Fixes #4816
2025-02-12 19:24:27 +01:00
Laytan Laats
7df5be2131
fix wrong out of memory in edge cases, just try allocate from block for one source of truth
2025-02-12 19:09:21 +01:00
gingerBill and GitHub
4678186cd2
Merge pull request #4815 from NotKyon/master
...
Win32 API: Add common comctl32 definitions and surrounding support structures.
2025-02-10 08:57:44 +00:00
Lucas Perlind
88a5817134
Fix tlsf block adjustment
2025-02-10 13:01:16 +11:00
kjdslf
a14a4d9de7
Add more win32 STARTF_* constants
2025-02-09 15:01:23 +01:00
NotKyon
ba9e723643
Win32: Fix strict style conformance.
2025-02-09 04:02:00 -08:00
NotKyon
2b36849004
Win32: Fix cross-platform compilation.
2025-02-09 03:50:51 -08:00
NotKyon
ba280c8993
Win32: Fix -vet errors.
2025-02-09 03:36:37 -08:00
NotKyon
a6188eda60
Add common Windows control messages, constants, structures, macros, and support.
2025-02-09 03:11:13 -08:00
Jeroen van Rijn and GitHub
963663b8e1
Merge pull request #4814 from haesbaert/dns-cleanup
...
Cleanup allocated dns runtime data
2025-02-09 02:12:02 +01:00
Christiano Haesbaert
cd53949c92
Cleanup allocated dns runtime data
...
While harmless, the runtime should clean up non-user allocated data.
On the same veign of: https://github.com/odin-lang/Odin/pull/4680
I'm kinda new to Odin and wrote netcat, in order to get a clean valgrind run,
one has to manually destroy dns_configuration:
https://github.com/haesbaert/learn-odin/blob/main/netcat/netcat.odin#L168-L169
While here unexport the destroy procedure and make destruction idempotent.
2025-02-09 00:26:25 +01:00
Christiano Haesbaert
605527f9db
Fix some compression bugs in dns.
...
- A compression pointer is when the two higher bits are set, the code was
considering only 0xC0 as a pointer, where in reality anything from 0xC0-0xFF is
a pointer, probably went unnoticed since you need big packets to have long pointers.
- Make sure we can access the lower byte of the pointer by checking len, the
code was careful to not access past the first byte, but ignored the second.
- As per RFC9267 make sure a pointer only points backwards, this one is not so
bad, as the code had a iteration_max that ended up guarding against infinite jumps.
Lightly tested, some eyes are welcome, but these are remote DOSable.
2025-02-09 00:00:11 +01:00
Jeroen van Rijn and GitHub
0683a3d672
Merge pull request #4681 from haesbaert/sockaddr
...
Add net.dial_tcp_from_host{_or_endpoint} and unify them
2025-02-08 12:45:02 +01:00
gingerBill and GitHub
4ea96bd1c9
Merge pull request #4779 from jkenda/master
...
encoding/json: marshal enumerated arrays to objects with key-value pairs
2025-02-08 08:01:36 +00:00
Laytan Laats
80d09774b4
fix not using RTLD_LOCAL on darwin
2025-02-06 19:15:12 +01:00
gingerBill and GitHub
919e9a82e7
Merge pull request #4774 from Goldenlion5648/typo-correction-in-rand
...
fix typo in float32_range doc string
2025-02-05 11:59:59 +00:00
gingerBill and GitHub
861a99cdc5
Merge pull request #4791 from roccoblues/ds/io-docs
...
`core:io` small documentation fixes
2025-02-05 11:59:17 +00:00
Dennis Schön
fbf536f465
core:io small documentation fixes
2025-02-04 21:27:44 +01:00
Jacob Friedman
385f5f5014
Small optimization
2025-02-04 19:51:48 +01:00
Jacob Friedman
4c0b145bad
Fix unicode handling
2025-02-04 15:49:23 +01:00
Jacob Friedman
239c511ce9
Fix strings.split_iterator when separator is empty
2025-02-04 15:09:12 +01:00
gingerBill and GitHub
0e1c89e99b
Merge pull request #4781 from NotKyon/master
...
Add miscellaneous missing WinAPI functions, constants, and structures (comctl32, user32, uxtheme)
2025-02-03 08:15:34 +00:00
gingerBill and GitHub
dc7cd21986
Merge pull request #4782 from Daxode/nsstring-appendingstring
...
Add stringByAppendingString to NSString
2025-02-02 07:01:16 +00:00
daniel.andersen
c8a537aad9
Add stringByAppendingString to NSString
2025-02-02 03:26:07 +01:00
NotKyon
bdf2a587c3
Add miscellaneous missing WinAPI functions, constants, and structures for comctl32, user32, and ux_theme.
2025-02-01 16:17:28 -08:00