[Webkit-unassigned] [Bug 123661] New: EnforceRange doesn't enforce range of a short

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Nov 2 01:01:22 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=123661

           Summary: EnforceRange doesn't enforce range of a short
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Bindings
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ap at webkit.org
                CC: sam at webkit.org, dchris at gmail.com, michael at 68k.org


In WebIDL, short has a range of  [−32768, 32767], and unsigned short has a range of [0, 65535]. But our code generator just does a 32-bit conversion:

    return "toInt32(exec, $value, $intConversion)" if $type eq "long" or $type eq "short";
    return "toUInt32(exec, $value, $intConversion)" if $type eq "unsigned long" or $type eq "unsigned short";

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list