Closed Bug 254216 Opened 20 years ago Closed 6 years ago

string IDL type behaves differently when used as return param and as [size_is(foo),retval]out

Categories

(Core :: XPConnect, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: vlad, Unassigned)

Details

We have right now in nsIScriptableInputStream.idl:
  string read(in unsigned long aCount);
and in nsIBinaryInputStream.idl:
  void readBytes(in PRUint32 aLength, [size_is(aLength), retval] out string
aString);

both end up as "char **retval" in the C++ side, but xpconnect isn't stripping
the 8th bit for the readBytes case (as it does for all other "string"s, either
in or return value).

nsIBinaryInputStream isn't frozen, so if this behaviour were to be fixed, the
signature of readBytes could be changed to something that doesn't strip the 8th bit.
Assignee: dbradley → nobody
QA Contact: pschwartau → xpconnect
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.