#stich
13 messages · Page 1 of 1 (latest)
Can you send it by text? Or post it to the pastebin? @noble isle
@drowsy vigil here
par_decode_base64 passes a test after commenting out if block for padding checking
It's trivial to see that 4 bits are remaining after decoding b"light work", but interestingly buffer contains 0 after that
if padding_count > 2 || (buffer != 0 && padding_count != 1) {
return None;
}```
passes a test
encode panics on index 1, I assume it's due to block[1] in if index < len
There's no proof that index + 2 <= len at this point
if let Some(bl0) = bytes.get(index) {
let &bl1 = bytes.get(index + 1).unwrap_or(&0);
let pad = match bytes.len() - index {```
Almost gets there, test fails for other reason, probably has to do with algorithm
where do i change this
ohh i see
@drowsy vigil
@grizzled heron u explain this