-
Notifications
You must be signed in to change notification settings - Fork 253
Labels
bugcommunityunit-testTickets related to the OSAL unit testing (functional and/or coverage)Tickets related to the OSAL unit testing (functional and/or coverage)
Milestone
Description
Describe the bug
TestReadWriteLseek calls strlen but fails to account for null terminator, causing garbage characters to be written to test log
To Reproduce
Build and run file-api-test
Depending on the contents of memory, bogus characters may be written to build/[arch]/default_[cpu]/Testing/Temporary/LastTest.log
Expected behavior
Valid characters in LastTest.log
Code snips
Should be size = strlen(buffer)+1
osal/src/tests/file-api-test/file-api-test.c
Line 333 in bfca5b2
| size = strlen(buffer); |
System observed on:
Linux
Reporter Info
John N Pham, Northrop Grumman
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugcommunityunit-testTickets related to the OSAL unit testing (functional and/or coverage)Tickets related to the OSAL unit testing (functional and/or coverage)