Skip to content

Commit

Permalink
Bug 1123114 - Mark DOMString::mStringBuffer as unsafe; r=smaug
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan committed Jan 18, 2015
1 parent aa32fa6 commit c2a18b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dom/bindings/DOMString.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ class MOZ_STACK_CLASS DOMString {

// For callees that know we exist, we can be a stringbuffer/length/null-flag
// triple.
nsStringBuffer* mStringBuffer;
nsStringBuffer* MOZ_UNSAFE_REF("The ways in which this can be safe are "
"documented above and enforced through "
"assertions") mStringBuffer;
uint32_t mLength;
bool mIsNull;
};
Expand Down

0 comments on commit c2a18b5

Please sign in to comment.