Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat UAS ID Types based on data type accordingly #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kc2rxo
Copy link

@kc2rxo kc2rxo commented Jan 25, 2024

F3411-22a defines the UAS ID Types to have the following data types:

  1. Serial Numbers as ASCII string
  2. CAA Assigned ID as ASCII string
  3. UTM Assigned ID as UUIDv4 (encoded as bytes)
  4. Specific Session ID as bytes

This PR fixes an issue (documented in #124) where the use of ODID_COPY_STR (specifically the strncpy function within it) was incorrectly truncating UAS IDs (specifically ID Types 3 and 4) on the first occurrence of a 0 or null byte.

ID Types 3 and 4 are byte structures as defined in F3411-22a and should be treated as such.
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