[Issue 3794] Phobos' socket.receive should assert on the length of the target array

2014-02-22 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3794


Peter Alexander  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX


--- Comment #4 from Peter Alexander  2014-02-22 
05:15:51 PST ---
As per above discussion, closing this as WONTFIX because:

1. There is no evidence this is a common bug.
2. The code already handles 0-length arrays.
3. There may be user code relying in the current behaviour.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 3794] Phobos' socket.receive should assert on the length of the target array

2014-02-15 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3794


Stanislav Blinov  changed:

   What|Removed |Added

 CC||stanislav.bli...@gmail.com


--- Comment #3 from Stanislav Blinov  2014-02-15 
15:12:30 PST ---
(In reply to comment #2)
> I propose we close this as WONTFIX. As Vladimir says, the function handles it
> safely, and there may be code out there relying on this.
> 
> If there are no objections within a week, I'll close it.

I agree.

The function signature already indicates that no resizing is performed (it's
void[], not ref void[]), so the assumption itself is unsubstantiated.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 3794] Phobos' socket.receive should assert on the length of the target array

2014-02-15 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3794


Peter Alexander  changed:

   What|Removed |Added

 CC||peter.alexander...@gmail.co
   ||m


--- Comment #2 from Peter Alexander  2014-02-15 
13:09:50 PST ---
I propose we close this as WONTFIX. As Vladimir says, the function handles it
safely, and there may be code out there relying on this.

If there are no objections within a week, I'll close it.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 3794] Phobos' socket.receive should assert on the length of the target array

2011-08-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3794


Vladimir Panteleev  changed:

   What|Removed |Added

 CC||thecybersha...@gmail.com


--- Comment #1 from Vladimir Panteleev  2011-08-23 
19:09:04 PDT ---
It's probably too late to change this now. WONTFIX?

Also, it would probably have to be an enforce, not an assert.

By the way, the function already special-cased 0-length arrays, by always
returning 0 instead of passing it to the C socket function.

> A common mistake

Citation needed ;)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---