Files
lix/src/libutil
Tuomas Tynkkynen 546f98dace libutil: Fix invalid assert on decoding base64 hashes
The assertion is broken because there is no one-to-one mapping from
length of a base64 string to the length of the output.

E.g.

"1q69lz7Empb06nzfkj651413n9icx0njmyr3xzq1j9q=" results in a 32-byte output.
"1q69lz7Empb06nzfkj651413n9icx0njmyr3xzq1j9qy" results in a 33-byte output.

To reproduce, evaluate:

builtins.derivationStrict {
    name = "0";
    builder = "0";
    system = "0";
    outputHashAlgo = "sha256";
    outputHash = "1q69lz7Empb06nzfkj651413n9icx0njmyr3xzq1j9qy";
}

Found by afl-fuzz.
2018-02-19 23:20:26 +02:00
..
2017-10-24 12:58:34 +02:00
2017-10-24 12:58:34 +02:00
2016-11-07 14:35:47 +01:00
2017-07-26 17:29:10 +02:00
2017-07-26 17:29:10 +02:00
2017-12-30 20:26:33 -06:00
2018-02-14 18:26:37 -05:00
2017-10-23 20:50:28 +02:00
2017-08-03 07:03:22 +10:00
2017-10-09 15:41:09 +02:00
2017-10-09 15:41:09 +02:00
2015-07-17 20:13:56 +02:00
2014-02-26 18:55:18 +01:00