aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorKirjastonhoitaja <thekirjastonhoitaja@protonmail.com>2021-09-15 09:51:43 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2021-09-16 11:35:12 +0200
commite1bf350b4d66a682c8fc5f151563dd1725e8eaf1 (patch)
tree3f5862ce05476513a87c24708bf08631d5587d8d /src/codegen.zig
parentd5c1d24964b0ee8ad37beb8e2a907e8caa645e07 (diff)
downloadzig-e1bf350b4d66a682c8fc5f151563dd1725e8eaf1.tar.gz
zig-e1bf350b4d66a682c8fc5f151563dd1725e8eaf1.zip
net.Address: Fix writing 0-bytes when formatting Unix addresses
The entire 'path' array would get written to the formatting function, when it should instead be treated as a regular zero-terminated string. Note that this doesn't handle abstract paths on Linux, those paths *start* with a \0 byte and are hence treated as empty strings instead. But fixing that would require more adjustments than just formatting, in particular to getOsSockLen().
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions