Skip to content

udp: possible unaligned acces in gnrc_udp_hdr_build() #4185

Closed
@daniel-k

Description

@daniel-k
gnrc_pktsnip_t *gnrc_udp_hdr_build(gnrc_pktsnip_t *payload,
                                   uint8_t *src, size_t src_len,
                                   uint8_t *dst, size_t dst_len)

has uint8_t * arguments that will be dereferenced as uint16_t * which can lead to an unaligned access and the documentation doesn't warn the user.

Metadata

Metadata

Assignees

Labels

Area: docArea: DocumentationType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions