Commit Graph

191 Commits

Author SHA1 Message Date
Czarek Nakamoto
21e05d6ef3 i hate arm 2024-06-13 15:00:09 +02:00
Czarek Nakamoto
0818d7cdc8 fix ci 2024-06-13 12:29:47 +02:00
Czarek Nakamoto
cd07e5d211 fix wownero build issues, rename target to proper triplet 2024-06-12 16:53:30 +02:00
Czarek Nakamoto
681282411b remove wownero specific libc++ code 2024-06-12 08:33:37 +02:00
Czarek Nakamoto
c25b469c64 pump ndk version for wownero 2024-06-12 08:10:35 +02:00
Czarek Nakamoto
f79d335d6f fix typo 2024-06-05 14:38:47 +02:00
sneurlax
4fb2066bde remove -n: overwrite existing files (#5) 2024-06-02 12:11:34 +02:00
Czarek Nakamoto
67b8214776 use custom release token 2024-05-30 09:50:54 +02:00
Czarek Nakamoto
81bd1208c4 fix android build script 2024-05-29 11:40:02 +02:00
Czarek Nakamoto
4899bb9a09 macos fixes 2024-05-27 10:25:54 +02:00
Czarek Nakamoto
72bae6b8c9 ci fixes 2024-05-24 11:42:56 +02:00
Czarek Nakamoto
fa8d4c70c3 fix macos compliance 2024-05-24 07:34:48 +02:00
Czarek Nakamoto
54ed596ec5 macos compat
android fixes
2024-05-23 13:58:42 +02:00
Czarek Nakamoto
f9a6c90c89 mingw and android fixes 2024-05-23 09:33:14 +02:00
Czarek Nakamoto
c4b28a6a62 -DCMAKE_SYSTEM_VERSION=1
is the workaround to update to newer ndk without breaking the entire build system
2024-05-23 08:03:35 +02:00
Czarek Nakamoto
d41f4fd6d0 fix mingw, darwin builds
break mutex in ledger
2024-05-21 13:59:56 +02:00
Czarek Nakamoto
d5ca199581 initial gh actions 2024-05-21 10:23:37 +02:00
Czarek Nakamoto
1ef940fdee fix build issues 2024-05-18 12:43:42 +02:00
Czarek Nakamoto
e2e752c365 wip ur support 2024-05-16 18:26:32 +02:00
Czarek Nakamoto
1474a8c5de WIP: UR support in monero 2024-05-16 08:09:57 +02:00
Czarek Nakamoto
89c7a09ec2 add {aarch64,x86_64}-host-apple-darwin targets 2024-05-15 19:19:09 +02:00
Czarek Nakamoto
5e17368b41 MAKE_OSX_ARCHITECTURES 2024-05-15 18:21:22 +02:00
Czarek Nakamoto
9a81739945 fix amd64 builds on macos
fix homebrew_prefix
2024-05-15 17:28:35 +02:00
Czarek Nakamoto
060c27f91e fix darwin wownero exports 2024-05-14 08:40:57 +02:00
Czarek Nakamoto
4a9142a36f fix store crash readme update wownero build fix 2024-05-11 17:32:40 +02:00
Czarek Nakamoto
6781419926 embed libc++_shared.so in android builds 2024-05-10 11:18:30 +02:00
Czarek Nakamoto
07d3a5d7da fix wownero issue... 2024-05-05 13:47:54 +02:00
Czarek Nakamoto
cd90f3bcd0 expose free function 2024-05-01 14:02:30 +02:00
Czarek Nakamoto
b739dd6b51 multisig 2024-04-29 14:09:14 +02:00
Czarek Nakamoto
75d6aba195 Merge branch 'rewrite-wip' of https://github.com/mrcyjanek/monero_c into HEAD 2024-04-29 12:29:52 +02:00
Czarek Nakamoto
6f29bb5387 windows support 2024-04-29 12:22:49 +02:00
Czarek Nakamoto
1078ed2234 update build script for macos 2024-04-27 19:17:40 +02:00
Czarek Nakamoto
62d5d5d393 fix darwin cross compilation build 2024-04-26 08:15:47 +02:00
Czarek Nakamoto
bc0705e5d9 -fPIC 2024-04-25 19:17:09 +02:00
Czarek Nakamoto
1f2656712b fix build issues with wownero-seed 2024-04-25 18:45:38 +02:00
Czarek Nakamoto
0d041dfbfb update header file 2024-04-25 16:21:36 +02:00
Czarek Nakamoto
c8a28fae5e fix wownero build in contrib/depends system 2024-04-25 14:36:57 +02:00
Czarek Nakamoto
b7eab542df wownero-seed support 2024-04-25 10:07:36 +02:00
Czarek Nakamoto
35aed1976f export symbols on macos 2024-04-23 08:53:22 +02:00
Czarek Nakamoto
bf759f79b5 minimal cmake example 2024-04-22 21:54:39 +02:00
Czarek Nakamoto
36e61433c7 yet another difference in wow... 2024-04-22 16:14:52 +02:00
Czarek Nakamoto
fdd5c6848b sync changes to wownero. Wow. 2024-04-22 15:33:09 +02:00
Czarek Nakamoto
7e49b4ad69 add missing functionality from for cake's polyseed implementation 2024-04-22 12:49:17 +02:00
Czarek Nakamoto
90658235f6 update polyseed commit
change POLYSEED_COIN to wownero in the fork
update wownero patches
2024-04-22 09:33:21 +02:00
Czarek Nakamoto
b736b3e465 fix memory allocation issue 2024-04-20 16:52:51 +02:00
Czarek Nakamoto
162dfa6683 fix signature 2024-04-20 15:27:51 +02:00
Czarek Nakamoto
6dfe04ddd7 unsigned long long 2024-04-19 16:44:01 +02:00
sneurlax
b98653c32f iOS build: do not fail due to mv: Directory not empty 2024-04-19 16:39:09 +02:00
Czarek Nakamoto
22f6fb4b63 fix regarding the issues raised during security audit
In the polyseed-examples repository, the `utf8_nfc` and `utf8_nfkd` functions will never return a value exceeding `POLYSEED_STR_SIZE - 1`
In your code, the utf8_norm function has variable return behavior that seems odd
In case of a normalization error, the underlying normalizer will return a negative value, at which point your function just returns POLYSEED_STR_SIZE (this is unclear)
In case the buffer isn't large enough, the normalizer will return the required buffer size but have undefined internal behavior, at which point your function returns a value exceeding POLYSEED_STR_SIZE
Otherwise, it uses the normalizer's return value (indicating the written size) to continue with re-encoding

tobtoht: Czarek Nakamoto: polyseed asserts that the return value < POLYSEED_STR_SIZE, so if normalization fails the program crashes..
> I think my idea was to have have polyseed check the return value and return an error code instead of asserting, which would in turn throw the "Unicode normalization failed" error
> I'll upstream that. In the meantime you can replace the injected function with
```cpp
    inline size_t utf8_norm(const char* str, polyseed_str norm, utf8proc_option_t options) {
      utf8proc_int32_t buffer[POLYSEED_STR_SIZE];
      utf8proc_ssize_t result;

      result = utf8proc_decompose(reinterpret_cast<const uint8_t*>(str), 0, buffer, POLYSEED_STR_SIZE, options);
      if (result < 0 || result > (POLYSEED_STR_SIZE - 1)) {
        throw std::runtime_error("Unicode normalization failed");
      }

      result = utf8proc_reencode(buffer, result, options);
      if (result < 0 || result > POLYSEED_STR_SIZE) {
        throw std::runtime_error("Unicode normalization failed");
      }

      strcpy(norm, reinterpret_cast<const char*>(buffer));
      sodium_memzero(buffer, sizeof(buffer));
      return result;
    }
```
2024-04-19 16:37:42 +02:00
Czarek Nakamoto
05569f7b80 Wallet::reconnectDevice implementation 2024-04-19 16:28:59 +02:00