[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.


Generated at Thu Feb 08 10:36:01 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.