zig icon indicating copy to clipboard operation
zig copied to clipboard

std.c: openbsd adding secure allocator calls, differs from usual call…

Open devnexen opened this issue 2 years ago • 3 comments

…s as memory contents not included in core dumps

devnexen avatar Jun 09 '23 17:06 devnexen

cc @mikdusan 🙂

devnexen avatar Jun 10 '23 11:06 devnexen

hi @devnexen, thank you for this contribution as well as all your previous ones.

I'm a bit concerned with the pattern of your contributions. They come in many small bits, without any citations for how the information was obtained, and are on the ABI boundary which is extremely important to get right. It's also unclear how much testing you are doing. I need you to find a more auditable, trustworthy way to contribute these OS bits, if that is something you wish to continue doing.

To be more concrete:

  • explain the strategy used to obtain the extern bits
  • explain how the commits were tested
  • provide reasoning why the bits are a needed addition to the zig std lib

I would also like you to do this for all your previous commits in master branch. If you cannot supply this information, I'm afraid I will have to blanket revert all your commits.

andrewrk avatar Jun 13 '23 15:06 andrewrk

fair and valid points, I ll start to look at those within the next days. cheers.

devnexen avatar Jun 13 '23 16:06 devnexen

pub fn main() !void { const sz = 1024; var ptr = c.malloc_conceal(sz); c.freezero(ptr, sz); ptr = c.calloc_conceal(1, sz); c.free(ptr); }`

devnexen avatar Jun 22 '23 20:06 devnexen