aboutsummaryrefslogtreecommitdiff
path: root/lib/std/c/linux.zig
diff options
context:
space:
mode:
authorAlexandros Naskos <alex_naskos@hotmail.com>2020-02-29 08:36:42 +0200
committerGitHub <noreply@github.com>2020-02-29 01:36:42 -0500
commit1b41f2d77ea14de27b0655a35a727d664cfc4ca4 (patch)
treed3e5996e16424fa205a0f8072670254a04147545 /lib/std/c/linux.zig
parenta5a53a182af3715edd9474fe94cad2223a6c7fb9 (diff)
downloadzig-1b41f2d77ea14de27b0655a35a727d664cfc4ca4.tar.gz
zig-1b41f2d77ea14de27b0655a35a727d664cfc4ca4.zip
C pointer slices are no longer allowzero (#4462)
* Slices from C pointers are no longer allowzero but instead insert a runtime assertion. * Added a test, fixed code for cases with non-allowzero C pointers * Create new type when flipping allow_zero, sometimes we get a cached value back from adjust_ptr_len. * Added comments, changed panic message * Added runtime safety test.
Diffstat (limited to 'lib/std/c/linux.zig')
0 files changed, 0 insertions, 0 deletions