October 17, 2016 Bug or case of hijacking protection ? | ||||
---|---|---|---|---|
| ||||
Is this a bug or a case of hijacking protection ? ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ struct S { void test(void*, size_t){} } void test(ref S,void[]){} void main() { ubyte[] a; (*new S).test(a); } ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ |
October 17, 2016 Re: Bug or case of hijacking protection ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Basile B. | On Monday, 17 October 2016 at 14:01:26 UTC, Basile B. wrote: > Is this a bug or a case of hijacking protection ? > > ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ > struct S > { > void test(void*, size_t){} > } > > void test(ref S,void[]){} > > > void main() > { > ubyte[] a; > (*new S).test(a); > } > ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ In the meantime I've found this BR: https://issues.dlang.org/show_bug.cgi?id=11836 It could be closed if it's an authentic anti-hijacking case...waitaing for your expertise. |
Copyright © 1999-2021 by the D Language Foundation