April 01, 2007 [Issue 1089] New: Unsafe pointer comparison in TypeInfo_Pointer.compare | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1089 Summary: Unsafe pointer comparison in TypeInfo_Pointer.compare Product: DGCC aka GDC Version: 0.23 Platform: Other OS/Version: All Status: NEW Severity: critical Priority: P2 Component: Phobos AssignedTo: dvdfrdmn@users.sf.net ReportedBy: madou@madou.org in phobos/internal/object.d, line 412, the following code will fail miserably for p1 - p2 > int.max int compare(void *p1, void *p2) { return *cast(void* *)p1 - *cast(void* *)p2; } -- |
Copyright © 1999-2021 by the D Language Foundation