Commit Graph

13886 Commits

Author SHA1 Message Date
gingerBill ee84487106 Merge branch 'master' of https://github.com/odin-lang/Odin 2025-03-01 15:19:51 +00:00
gingerBill 211680569f Fix for -use-single-module 2025-03-01 15:19:46 +00:00
Laytan Laats 66540b75f5 fix hidden linkage applied to foreign symbols 2025-03-01 16:06:32 +01:00
Laytan 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 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 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 6054b921db Add tests for new safe to_cstring 2025-02-27 18:54:38 -05: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
Laytan Laats 94152ca701 misc/featuregen: fix script 2025-02-27 22:45:34 +01: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
gingerBill 882186f4da Merge pull request #4883 from Githubaccountlol/master
Correct core/mem/doc.odin
2025-02-26 09:50:44 +00:00
Githubaccountlol 88f423a38b Update doc.odin 2025-02-26 03:04:54 -06:00
gingerBill 1f6ddc0f36 Merge pull request #4881 from sndb/sdl-nil-rect
SDL3: Replace `#by_ptr ...` with `Maybe(^...)` where API allows nil pointers to rects
2025-02-26 08:58:49 +00:00
sndb 5fc1984fd4 Replace #by_ptr ... with Maybe(^...) where SDL API allows nil pointers 2025-02-26 09:54:39 +03:00
gingerBill cae91c9472 Fix rune printing with %b 2025-02-25 15:53:06 +00:00
gingerBill 400348c925 Improve global array index to be on a per module basis 2025-02-25 15:06:13 +00:00
gingerBill 92f6d2745b Make lb_add_global_generated_from_procedure not use a global index but local to procedure 2025-02-25 15:01:12 +00:00
gingerBill 46c0910a77 Fix lb_add_global_generated_with_name 2025-02-25 14:59:59 +00:00
gingerBill fd6d7d412d Use more predictable object name 2025-02-25 14:55:33 +00:00
gingerBill 5aafbc7f30 Use more deterministic module names 2025-02-25 14:35:54 +00:00
gingerBill f9d85a7311 Try to make globally generated variables deterministic in name 2025-02-25 14:29:14 +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 faaa05536f Support -show-timings for odin doc 2025-02-24 17:42:21 +00:00
gingerBill d0d5cf800e Fix nullptr check 2025-02-24 15:49:49 +00:00
gingerBill 344eb6cb42 Fix name canonicalization for doc writer 2025-02-24 15:44:38 +00:00
gingerBill f56a0a80d3 Use type hash for doc writer 2025-02-24 15:37:54 +00:00
gingerBill de70e6faa0 Use more type hashes where possible 2025-02-24 15:33:35 +00:00
gingerBill 83f1c879ec Canonicalize generated procedures (hasher/equal/map) 2025-02-24 15:18:27 +00:00
gingerBill 68731b2b50 Canonicalize global source code locations 2025-02-24 14:36:19 +00:00
gingerBill 2c86fadee1 More name canonicalization for globals 2025-02-24 14:28:24 +00:00
gingerBill f0f395c510 Fix canonicalization 2025-02-24 14:24:06 +00:00
gingerBill 46a8991d0f Canonicalize generated procedures 2025-02-24 14:19:02 +00:00
gingerBill 533f82da24 Fix #4822 2025-02-24 14:11:47 +00:00
gingerBill c2cafcbe14 Fix #4819 2025-02-24 14:07:39 +00:00
gingerBill 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
gingerBill c45f39702a stdcall to system 2025-02-24 13:45:50 +00:00
gingerBill e25507ca3b Merge pull request #2938 from moritzfalk/d3d11-annotations
Adding IUserDefinedAnnotation to D3D11 for better debugging.
2025-02-24 13:39:58 +00:00
Barinzaya 33a3aab791 Added simd_extract_msbs intrinsic. 2025-02-24 08:39:32 -05:00
gingerBill d23453811d Improve semicolon checking rules when parsing 2025-02-24 13:13:36 +00:00
gingerBill c0b923c1c6 Merge pull request #4874 from keenanwoodall/ns-save-panel-url-not-array
Darwin/Foundation `SavePanel_URL` returns ^URL instead of ^Array
2025-02-24 08:23:41 +00:00
Keenan Woodall a709876788 SavePanel_URL returns ^URL instead of ^Array 2025-02-23 19:00:27 -06:00
Jeroen van Rijn b6e4765e63 Merge pull request #4872 from haesbaert/dns-spoof
Fix multiple vulnerabilities in the resolver
2025-02-23 19:13:21 +01: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