Skip to content

For #1608, added OS_TranslatePathWithSize() and deprecated OS_Transla… - #1610

Merged
myc-yang merged 3 commits into
nasa:devfrom
myc-yang:1608-check-length-localpath-deprecate
Nov 19, 2026
Merged

myc-yang merged 3 commits into
nasa:devfrom
myc-yang:1608-check-length-localpath-deprecate

Conversation

@myc-yang

@myc-yang myc-yang commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

…tePath()

For members of the cFS Team
Click the Preview tab and select the pull request template corresponding to the type of change you are submitting:

Checklist (Please check before submitting)

Describe the contribution
Fixes #1608

Testing performed
Unit Test and Static Code Analysis

Expected behavior changes
API Change

Added:

int32 OS_TranslatePath(const char *VirtualPath, char *LocalPath, size_t LocalPathSize);

System(s) tested on

  • Hardware: PC
  • OS: LInux

Additional context
Add any other context about the contribution here.

Third party code
Michael Yang / NASA / GSFC

Contributor Info - All information REQUIRED for consideration of pull request
Full name and company/organization/center of all contributors ("Personal" if individual work)

  • Note CLAs apply to only software contributions.

@myc-yang
myc-yang requested a review from jphickey November 13, 2026 18:24
@myc-yang
myc-yang force-pushed the 1608-check-length-localpath-deprecate branch from ce8fb19 to e19f66a Compare November 13, 2026 19:23
@myc-yang
myc-yang marked this pull request as ready for review November 13, 2026 19:27
jphickey
jphickey previously approved these changes Nov 13, 2026

@jphickey jphickey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems good to me. I didn't run it though, just a visual check. Workflows pass so that brings confidence.

@jlombay

jlombay commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Seems good to me. I didn't run it though, just a visual check. Workflows pass so that brings confidence.

General question. Seems like this change is to deprecate "OS_TranslatePath(...)". Should other calls to the "deprecated" function be updated as well? (e.g. Unit Test code, internal calls). Otherwise, seems like it would cause issues if compiled with the "OSAL_OMIT_DEPRECATED" flag.

@myc-yang

Copy link
Copy Markdown
Contributor Author

Seems good to me. I didn't run it though, just a visual check. Workflows pass so that brings confidence.

General question. Seems like this change is to deprecate "OS_TranslatePath(...)". Should other calls to the "deprecated" function be updated as well? (e.g. Unit Test code, internal calls). Otherwise, seems like it would cause issues if compiled with the "OSAL_OMIT_DEPRECATED" flag.

I actually had another PR (which I since closed) and I think @jphickey might have addressed that in this comment - #1609 (review)

@myc-yang
myc-yang dismissed stale reviews from alexandercalder and jphickey via 7c1e6a5 November 17, 2026 19:13
@myc-yang myc-yang self-assigned this Nov 17, 2026
@myc-yang
myc-yang force-pushed the 1608-check-length-localpath-deprecate branch from 6968bf6 to 6f158be Compare November 18, 2026 17:42
@myc-yang
myc-yang force-pushed the 1608-check-length-localpath-deprecate branch from 6f158be to bf3dae1 Compare November 18, 2026 20:04
@myc-yang
myc-yang force-pushed the 1608-check-length-localpath-deprecate branch from bf3dae1 to 88ae31f Compare November 18, 2026 20:12

@jlombay jlombay left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The rest looks good to me and passed the checks. The provided comment doesn't affect the implementation, just unit test mock (if someone happens to be using it), so it's minor.

Comment thread src/ut-stubs/osapi-filesys-stubs.c Resolved
@myc-yang
myc-yang merged commit ffc9d26 into nasa:dev Nov 19, 2026
13 checks passed
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.

OS_TranslatePath() assumes that LocalPath is a buffer of length OS_MAX_LOCAL_PATH_LEN

4 participants