fix stray pointer problem that only showed in ReleaseSafe

This commit is contained in:
Emil Lerch 2022-01-06 14:01:42 -08:00
parent 2a0719853e
commit 6693db101d
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -53,6 +53,7 @@ pub fn encryptWithKey(allocator: std.mem.Allocator, key: [key_size]u8, data: []u
// deal with final block, PKCS#7 padding
{
in = @ptrCast(*[block_size]u8, data[(total_blocks * block_size)..]);
const padding: u8 = @intCast(u8, block_size - (data.len % block_size));
var inx: u8 = 0;
for (data[(total_blocks * block_size)..]) |b| {