Registering the mode_flags field breaks other fields #8

Closed
opened 2023-06-26 22:21:09 +02:00 by MarieEckert · 1 comment
MarieEckert commented 2023-06-26 22:21:09 +02:00 (Migrated from github.com)

Registering the mode_flags in mb_execute.c#mb_exec_compile causes the value of the file field and potentially some other fields to break.

Registering the `mode_flags` in `mb_execute.c#mb_exec_compile` causes the value of the `file` field and potentially some other fields to break.
MarieEckert commented 2023-06-28 19:02:39 +02:00 (Migrated from github.com)

Fixed with commit e699e98

This bug is caused by reallocation done by the register functions. Any pointer that is stored for quick access to a member of a mb_file struct needs to be reassigned (for example using the Navigation Functions of mb_parse.h) because the reallocation breaks the old pointers.

Fixed with commit [e699e98](https://github.com/FelixEcker/mariebuild/commit/e699e98dae96635f8be6192471a977d4ba87b8f6) This bug is caused by reallocation done by the register functions. Any pointer that is stored for quick access to a member of a mb_file struct needs to be reassigned (for example using the Navigation Functions of mb_parse.h) because the reallocation breaks the old pointers.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
marie/mariebuild#8
No description provided.