You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe. CFE_SB_GetAppTskName takes a char pointer FullName without an associated size. Relies on user to size the buffer correctly for the sprintf:
Describe the solution you'd like
Related to #1457, explicitly size as an array and use snprintf to print to limit appropriately. Note #994 suggests moving this to a generic utility (out of SB scope), maybe ES API.
Describe alternatives you've considered
None
Additional context
Code review
Requester Info
Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered:
skliper
changed the title
Use sized char array for CFE_SB_GetAppTskName parameter
Use sized char array for CFE_SB_GetAppTskName parameter and limit print
Apr 30, 2021
Is your feature request related to a problem? Please describe.
CFE_SB_GetAppTskName
takes a char pointerFullName
without an associated size. Relies on user to size the buffer correctly for the sprintf:cFE/modules/sb/fsw/src/cfe_sb_priv.c
Line 304 in c8b5e00
cFE/modules/sb/fsw/src/cfe_sb_priv.c
Line 335 in c8b5e00
Describe the solution you'd like
Related to #1457, explicitly size as an array and use snprintf to print to limit appropriately. Note #994 suggests moving this to a generic utility (out of SB scope), maybe ES API.
Describe alternatives you've considered
None
Additional context
Code review
Requester Info
Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered: