You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is therefore in some cases reading memory beyond maxLimit. The wrap method on the Flyweight class itself should verify that maxLimit is greater than offset. Generated wrap method should validate that maxLimit - offset is at least large enough to accommodate all required and default values.
Taking the DataFW as an example, as generated from the following IDL:
calling DataFW.wrap(buffer, offset, maxLimit) should throw an exception if maxLimit - offset is not at least 8 + 8 + 1 + 8 + 4 + 4 = 33. Currently it will just attempt to interpret bytes going beyond maxLimit!
The text was updated successfully, but these errors were encountered:
It is therefore in some cases reading memory beyond maxLimit. The wrap method on the Flyweight class itself should verify that maxLimit is greater than offset. Generated wrap method should validate that maxLimit - offset is at least large enough to accommodate all required and default values.
Taking the DataFW as an example, as generated from the following IDL:
calling DataFW.wrap(buffer, offset, maxLimit) should throw an exception if maxLimit - offset is not at least 8 + 8 + 1 + 8 + 4 + 4 = 33. Currently it will just attempt to interpret bytes going beyond maxLimit!
The text was updated successfully, but these errors were encountered: