On Thu, May 13, 2010 at 10:46 AM, Iain Buclaw wrote:
> [i...@netbook ~]$ cat md5test.d
> import std.md5;
> import std.stdio;
> void main(){
> // testcase from md5.d unittests
> ubyte[16] digest;
> sum (digest, "abc");
> writefln(digestToString(digest));
> assert(digest == cast(ubyte[])x"900150
On 13 May 2010 09:46, Iain Buclaw wrote:
>
> I'm happy to say this is resolved (for me). Attaching updated
> gdc-4.3.dpatch which addresses the issue.
>
>
And a patch against debian's gccsvn ( for the lazy ;).
--
Iain Buclaw
*(p < e ? p++ : p) = (c & 0x0f) + '0';
Index: debian/patches/gdc-4.3.
[i...@netbook ~]$ cat md5test.d
import std.md5;
import std.stdio;
void main(){
// testcase from md5.d unittests
ubyte[16] digest;
sum (digest, "abc");
writefln(digestToString(digest));
assert(digest == cast(ubyte[])x"900150983cd24fb0d6963f7d28e17f72");
}
[i...@netbook ~]$ gdmd-4.3 -unittest md
On 11 May 2010 23:03, Daniel Gibson wrote:
> Package: gdc-4.3
> Version: 1:1.046-4.3.4-5
> Severity: serious
>
>
> The MD5-sums calculated by std.md5 are seriously broken - they're not
> only wrong, they're different on each run..
> gdc-4.1 and the closed-source dmd do *not* have this bug. Becaus
Package: gdc-4.3
Version: 1:1.046-4.3.4-5
Severity: serious
The MD5-sums calculated by std.md5 are seriously broken - they're not
only wrong, they're different on each run..
gdc-4.1 and the closed-source dmd do *not* have this bug. Because
md5.d in the gdc-4.1 and gdc-4.3 package sources are iden
5 matches
Mail list logo