cryptocode

Results 9 comments of cryptocode

Definitely a complex issue. For my part, an implementation that generates write methods for each field with a simple type (uint32_t, etc for C++) to a stream would go a...

I just ran into this and had to call out to __builtin_memcmp to get performance on par with the ported C code (after noticing the std.mem.eql code standing out prominently...

This works fine on stage2 (tested on `0.10.0-dev.4418+99c3578f6`)

People mentioned enum flags being used in C. Here's an idiom I've been using when interacting with certain OS data structures whose enums have certain values based on other enum...

@mlugg yeah most of time either that or just constants. But sometimes you really do want an enum, it just so happens that some fields are based on others. That...

> clang and gcc differ here - GCC follows the standard and promotes to __int128; clang converts it to unsigned long long. Since translate-c is based on clang we follow...

Another segfault repro: `zig fetch file://`

Keeping security in mind while developing the new one would be nice. There have been plenty of CVE's related to flawed heap allocators. Some example attack vectors for inspiration: how2heap:...

> I had a question on this. Do we absolutely need to port mimalloc to zig as opposed to a Zig wrapper? The new allocator is supposed to be a...