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
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
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
System observed on:
Linux
Reporter Info
John N Pham, Northrop Grumman
The text was updated successfully, but these errors were encountered: