Skip to content

txm_module_manager_absolute_load create wrong data start pointer #450

@amgross

Description

@amgross

Describe the bug
In _txm_module_manager_absolute_load There is:

module_instance -> txm_module_instance_data_start = (VOID *) (((CHAR *) module_preamble->txm_module_preamble_code_size) + sizeof(TXM_MODULE_PREAMBLE));

This causes the txm_module_instance_data_start to be defined as size of struct + size of code, which not make sense to me, as it not address (and this variable should be address, as it used for things like MPU and checking if things located in memory area).

Expected behavior
txm_module_instance_data_start should contain the module data memory pointer

Impact
In edge cases like usage of MPU or objects that located in this memory things may fail

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdiscussionFlagged for discussion during the weekly team meetinghardwareNew hardware or architecture support request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions