Skip to content

(WIP) Fix type-aliasing-violation#1774

Open
michaelortmann wants to merge 1 commit into
eggheads:developfrom
michaelortmann:strict.aliasing
Open

(WIP) Fix type-aliasing-violation#1774
michaelortmann wants to merge 1 commit into
eggheads:developfrom
michaelortmann:strict.aliasing

Conversation

@michaelortmann

Copy link
Copy Markdown
Member

Found by: michaelortmann
Patch by: michaelortmann
Fixes:

One-line summary:
Fix type-aliasing-violation

Additional description (if needed):
Found with clang 20.1.0rc1 -fsanitize=type

Here a time_t is interpreted as an int:

static time_t server_cycle_wait; /* seconds to wait before

egg_snprintf(s1, sizeof s1, "%d", *(int *) ii->var);

There are more such warnings, hence i flagged this PR WIP.

Test cases demonstrating functionality (if applicable):
No functional change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant