Skip to content

Commit

Permalink
Bug 1815757 - limit size of InterfaceOffset to reduce padding r=xpcom…
Browse files Browse the repository at this point in the history
…-reviewers,nika

Differential Revision: https://phabricator.services.mozilla.com/D169230
  • Loading branch information
serge-sans-paille committed Feb 15, 2023
1 parent e99a1cd commit a793461
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xpcom/components/StaticComponents.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ struct StringOffset final {
* Represents an offset into the interfaces table.
*/
struct InterfaceOffset final {
uint32_t mOffset;
uint16_t mOffset;
};

/**
Expand Down Expand Up @@ -223,6 +223,7 @@ struct JSServiceEntry final {
ModuleID mModuleID;

InterfaceOffset mInterfaceOffset;

uint8_t mInterfaceCount;

nsCString Name() const;
Expand Down

0 comments on commit a793461

Please sign in to comment.