Skip to content

Commit 6e7cf88

Browse files
authored
Merge pull request #121 from nasa/integration-candidate
sample_app Integration candidate: 2021-01-19
2 parents b798efc + 9ff6b49 commit 6e7cf88

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ sample_app is an example for how to build and link an application in cFS. See al
88

99
## Version History
1010

11+
### Development Build: 1.2.0-rc1+dev37
12+
13+
- Documentation: Add `Security.md` with instructions on reporting vulnerabilities
14+
- Resolves bug where success code was reported as an error for `CFE_TBL_GetAddress`.
15+
- Rename `UT_ClearForceFail` as `UT_ClearDefaultValue` given change from <https://github.com/nasa/osal/issues/724>
16+
- See <https://github.com/nasa/sample_app/pull/121>
1117

1218
### Development Build: 1.2.0-rc1+dev29
1319

SECURITY.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Security Policy
2+
3+
## Reporting a Vulnerability
4+
5+
To report a vulnerability for the sample_app subsystem please [submit an issue](https://github.com/nasa/sample_app/issues/new/choose).
6+
7+
For general cFS vulnerabilities please [open a cFS framework issue](https://github.com/nasa/cfs/issues/new/choose) and see our [top-level security policy](https://github.com/nasa/cFS/security/policy).
8+
9+
In either case please use the "Bug Report" template and provide as much information as possible. Apply appropraite labels for each report. For security related reports, tag the issue with the "security" label.
10+
11+
## Additional Support
12+
13+
For additional support, email us at cfs-program@lists.nasa.gov. For help using OSAL and cFS, [subscribe to our mailing list](https://lists.nasa.gov/mailman/listinfo/cfs-community) that includes all the community members/users of the NASA core Flight Software (cFS) product line. The mailing list is used to communicate any information related to the cFS product such as current releases, bug findings and fixes, enhancement requests, community meeting notifications, sending out meeting minutes, etc.
14+
15+
If you wish to report a cybersecurity incident or concern please contact the NASA Security Operations Center either by phone at 1-877-627-2732 or via email address soc@nasa.gov.

fsw/src/sample_app.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ int32 SAMPLE_APP_Process(const SAMPLE_APP_ProcessCmd_t *Msg)
400400

401401
status = CFE_TBL_GetAddress((void *)&TblPtr, SAMPLE_APP_Data.TblHandles[0]);
402402

403-
if (status != CFE_SUCCESS)
403+
if (status < CFE_SUCCESS)
404404
{
405405
CFE_ES_WriteToSysLog("Sample App: Fail to get table address: 0x%08lx", (unsigned long)status);
406406
return status;

fsw/src/sample_app_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
/* Development Build Macro Definitions */
3434

35-
#define SAMPLE_APP_BUILD_NUMBER 29 /*!< Development Build: Number of commits since baseline */
35+
#define SAMPLE_APP_BUILD_NUMBER 37 /*!< Development Build: Number of commits since baseline */
3636
#define SAMPLE_APP_BUILD_BASELINE \
3737
"v1.2.0-rc1" /*!< Development Build: git tag that is the base for the current development */
3838

unit-test/coveragetest/coveragetest_sample_app.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ void Test_SAMPLE_APP_GetCrc(void)
593593
SAMPLE_APP_GetCrc("UT");
594594
UtAssert_True(UT_GetStubCount(UT_KEY(CFE_ES_WriteToSysLog)) == 1, "CFE_ES_WriteToSysLog() called");
595595

596-
UT_ClearForceFail(UT_KEY(CFE_TBL_GetInfo));
596+
UT_ClearDefaultReturnValue(UT_KEY(CFE_TBL_GetInfo));
597597
SAMPLE_APP_GetCrc("UT");
598598
UtAssert_True(UT_GetStubCount(UT_KEY(CFE_ES_WriteToSysLog)) == 2, "CFE_ES_WriteToSysLog() called");
599599
}

0 commit comments

Comments
 (0)