Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

fix(gtp): initialize endmarker header length to 0 to avoid uninitialized value#150

Merged
tim-ywliu merged 1 commit intofree5gc:masterfrom
chen042531:init-endmarker-length
Sep 11, 2025
Merged

fix(gtp): initialize endmarker header length to 0 to avoid uninitialized value#150
tim-ywliu merged 1 commit intofree5gc:masterfrom
chen042531:init-endmarker-length

Conversation

@chen042531
Copy link
Contributor

Title:
Initialize end marker GTP header length to avoid uninitialized value

Description:
To prevent potential issues caused by the compiler not initializing the length field in the GTP header of the end marker, this PR explicitly sets it to 0 during initialization. This ensures consistency and avoids undefined behavior due to uninitialized memory.

@tim-ywliu tim-ywliu merged commit 0e9dad4 into free5gc:master Sep 11, 2025
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.

3 participants