[Webkit-unassigned] [Bug 16922] New: _NPN_GetIntIdentifier does not work for values 0 or -1 due to using HashMap

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 18 04:14:29 PST 2008


           Summary: _NPN_GetIntIdentifier does not work for values 0 or -1
                    due to using HashMap
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Other
        OS/Version: Other
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Plug-ins
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: john.ripley at gmail.com

The implementation of HashMap for integer keys uses values 0 and -1 as special
empty and deleted bins. However, a plug-in can call NPN_GetIntIdentifier for
integers 0 or -1.

I'm currently working around this by remapping the incoming int32 space to
uint64 with bit 32 set, which messily avoids 0 or -1.

This causes any plug-in which tries to get an NPIdentifier from Javascript to
fail an assertion check.

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

More information about the webkit-unassigned mailing list