ltp/testcases/kernel/syscalls/read/read04.c writes TST_SIZE = 26 bytes "ABC..Z" to a file and reads them back in to prbuf which it not terminated.
One simple fix it to write the '\0' to the test file, thus reading it in.
patch to fix read04.c calling strcmp() on unterminated string
Logged In: YES
Patch Applied and Bug Closed
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.