This issue was imported from the GSFC issue tracking system
Imported from: [GSFCCFS-1790] CF test reads beyond end of buffer
Originally submitted by: Hickey, Joseph P. (GSFC-582.0)[VANTAGE SYSTEMS INC] on Tue Nov 16 18:56:38 2021
Original Description:
Inside the "Test_CF_strnlen_When_end_IsNot_NULL_ReturnLengthOfGiven_s" function, this calls "CF_strnlen()" with a size of 8, where the actual buffer size is only 7.
Recommend to call CF_strnlen with a size of 7, which would be correct.
This issue was imported from the GSFC issue tracking system
Imported from: [GSFCCFS-1790] CF test reads beyond end of buffer
Originally submitted by: Hickey, Joseph P. (GSFC-582.0)[VANTAGE SYSTEMS INC] on Tue Nov 16 18:56:38 2021
Original Description:
Inside the "Test_CF_strnlen_When_end_IsNot_NULL_ReturnLengthOfGiven_s" function, this calls "CF_strnlen()" with a size of 8, where the actual buffer size is only 7.
Recommend to call CF_strnlen with a size of 7, which would be correct.