[MDEV-33051] Unaligned access in my_dir() (mysys/my_lib.c) Created: 2023-12-18 Updated: 2023-12-18 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Pavel Labath | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
aarch64-linux |
||
| Description |
|
The function casts an unaligned char array to a `struct dirent`. This is undefined behavior and will crash on hardware (arm) required aligned accesses. As this function is called during server startup, this bug renders the server completely unusable. |