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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 11 15:18:13 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3794

           Summary: Phobos' socket.receive should assert on the length of
                    the target array
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: default_357-line at yahoo.de


--- Comment #0 from downs <default_357-line at yahoo.de> 2010-02-11 15:18:13 PST ---
A common mistake seems to be passing an empty array to .receive, in the
assumption that it will be resized. It would be better to assert on the array
length before passing it to the C socket function.

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


More information about the Digitalmars-d-bugs mailing list