Zcoin implementation bug enabled attacker to create 548, 000 Zcoins
Jerry via Digitalmars-d
digitalmars-d at puremagic.com
Sun Mar 12 00:03:46 PST 2017
On Tuesday, 7 March 2017 at 21:34:35 UTC, Walter Bright wrote:
> On 3/7/2017 9:45 AM, Atila Neves wrote:
>> 1 warning generated.
>
> Pretty much all C++ compilers will generate warnings for this.
> The thing about warnings, though, is they imply that there are
> situations where the code is acceptable. I can't think of any.
> It needs to be an error. It should never pass the compiler.
What about Ketmar's example? It seems to have been glossed over.
Still waiting on D to do something about comparisons between
signed and unsigned types, or is having no warning or error the
desired behavior?
More information about the Digitalmars-d
mailing list