Bug 1089 – Unsafe pointer comparison in TypeInfo_Pointer.compare

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
phobos
Product
D
Version
D1 (retired)
Platform
Other
OS
All
Creation time
2007-04-01T11:56:00Z
Last change time
2014-02-16T15:25:59Z
Assigned to
bugzilla
Creator
madou

Comments

Comment #0 by madou — 2007-04-01T11:56:52Z
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; }
Comment #1 by thomas-dloop — 2007-04-04T15:36:20Z
Comment #2 by bugzilla — 2007-04-16T22:21:38Z
Fixed DMD 1.012