Skip to content

Fix misaligned 4-byte access in trace logging.#1293

Merged
iphydf merged 1 commit into
TokTok:masterfrom
iphydf:fix-misaligned-access
Jan 10, 2019
Merged

Fix misaligned 4-byte access in trace logging.#1293
iphydf merged 1 commit into
TokTok:masterfrom
iphydf:fix-misaligned-access

Conversation

@iphydf

@iphydf iphydf commented Jan 7, 2019

Copy link
Copy Markdown
Member

This code is undefined behaviour as is, and breaks on various platforms
requiring strict alignment (many microcontrollers).


This change is Reviewable

@iphydf iphydf modified the milestones: v0.2.x, v0.2.9 Jan 7, 2019

@sudden6 sudden6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm_strong:

Reviewed 1 of 1 files at r1.
Reviewable status: 0 of 1 approvals obtained

@iphydf
iphydf force-pushed the fix-misaligned-access branch from 7eea3ea to 00f157b Compare January 8, 2019 23:04
This code is undefined behaviour as is, and breaks on various platforms
requiring strict alignment (many microcontrollers).
@iphydf
iphydf force-pushed the fix-misaligned-access branch from 00f157b to 3dd31b1 Compare January 10, 2019 19:37
@iphydf
iphydf merged commit 3dd31b1 into TokTok:master Jan 10, 2019
@iphydf
iphydf deleted the fix-misaligned-access branch January 10, 2019 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants